logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Message::Passing::Filter::Regexp::Log - Extension for Regexp::Log with Config::Tiny

Author

       chenryn, <rao.chenlin@gmail.com<gt>

Description

Name

       Message::Passing::Filter::Regexp::Log - Extension for Regexp::Log with Config::Tiny

See Also

       "Regexp::Log::Common"

Synopsis

         use Message::Passing::Filter::Regexp::Log;
         my $regex = Message::Passing::Filter::Regexp::Log->new(
             regexfile => "./regexfile",
             format => ":syslog",
             capture => [qw(pri host msg time)]
         );
         my @fields = $foo->capture;

         my $re = $foo->regexp;

         while (<>) {
             my %data;
             @data{@fields} = /$re/;    # no need for /o, it's a compiled regexp
         };

See Also