|
|
@@ -7,9 +7,10 @@ $^W = 1;
|
|
|
|
|
|
sub new
|
|
|
{
|
|
|
- my $type = shift;
|
|
|
+ my ($type, %args) = @_;
|
|
|
my $self = {
|
|
|
- debug => $_[0],
|
|
|
+ cfg => $args->{cfg},
|
|
|
+ debug => $args->{debug},
|
|
|
normalline => '^\[(\d+):\d+\] <([^>]+)> (.*)',
|
|
|
actionline => '^\[(\d+):\d+\] Action: (\S+) (.*)',
|
|
|
thirdline => '^\[(\d+):(\d+)\] (\S+) (\S+) (\S+) (\S+)(.*)',
|