Logfile::EPrints::Parser - Parse Web server logs that are formatted as one hit per line (e.g. Apache)
use Logfile::EPrints::Parser; $p = Logfile::EPrints::Parser->new( type=>'Logfile::EPrints::Hit::Combined', handler=>$Handler ); open my $fh, "<access_log" or die $!; $p->parse_fh($fh); close($fh);
Create a new Logfile::Parser object with the following options:
type - Optionally specify a class to parse log file lines with (defaults to ::CombinedLog) handler - Handler to call (see HANDLER CALLBACKS)
To install Logfile::EPrints, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Logfile::EPrints
CPAN shell
perl -MCPAN -e shell install Logfile::EPrints
For more information on module installation, please visit the detailed CPAN module installation guide.