Help language development. Donate to The Perl Foundation
this is a log reader with a basic interface.
supports a grammar/action parse, currently implemented with the extended log format (you can read about it from w3c).
use Log::Reader; my %data = parse-log('your-log'.IO.slurp); # do something with %data<directives> and %data<rows> here
have your own grammar/actions?
use Log::Reader; use Custom::Grammar; use Custom::Actions; my $parser = Log::Reader.new(:parser(Custom::Grammar), :actions(Custom::Actions)); $parser.parse('some-file'.IO.slurp);