line |
true |
false |
branch |
13
|
1 |
0 |
unless 'Log::Dispatch::Config'->use
|
14
|
1 |
0 |
if 'Time::HiRes'->use('tv_interval')
|
15
|
1 |
0 |
if 'Time::Piece'->use
|
25
|
0 |
0 |
if ($Catalyst::VERSION >= 5.8) { }
|
26
|
0 |
0 |
unless 'MRO::Compat'->use
|
29
|
0 |
0 |
unless 'NEXT'->use
|
33
|
0 |
0 |
if ($c->log and ref $c->log eq 'Catalyst::Log')
|
39
|
0 |
0 |
if (ref $c->config->{'Log::Dispatch'} eq 'HASH')
|
43
|
0 |
0 |
unless (ref $c->config->{'Log::Dispatch'} eq 'ARRAY')
|
56
|
0 |
0 |
if ($logc{'class'} eq 'STDOUT' or $logc{'class'} eq 'STDERR')
|
64
|
0 |
0 |
if ref $logc{'callbacks'} eq 'CODE'
|
66
|
0 |
0 |
if (exists $logc{'format'} and defined $Log::Dispatch::Config::CallerDepth)
|
68
|
0 |
0 |
if (defined $callbacks)
|
69
|
0 |
0 |
unless $logc{'callbacks'}
|
73
|
0 |
0 |
if (exists $logc{'format_o'} and length $logc{'format_o'}) { }
|
|
0 |
0 |
elsif (not $logc{'callbacks'}) { }
|
75
|
0 |
0 |
if (defined $callbacks)
|
76
|
0 |
0 |
unless $logc{'callbacks'}
|
83
|
0 |
0 |
unless $class->use
|
89
|
0 |
0 |
if ($old_log and defined __log_dispatch_get_body($old_log))
|
92
|
0 |
0 |
if ($line =~ /^\[(\w+)] (.+)$/) { }
|
|
0 |
0 |
elsif ($line =~ /^\[(\w{3} \w{3}[ ]{1,2}\d{1,2}[ ]{1,2}\d{1,2}:\d{2}:\d{2} \d{4})\] \[catalyst\] \[(\w+)\] (.+)$/) { }
|
107
|
0 |
0 |
if ($Catalyst::VERSION >= 5.8) { }
|
118
|
0 |
0 |
$Catalyst::VERSION >= 5.8 ? :
|
125
|
0 |
0 |
unless defined $format
|
129
|
0 |
0 |
if ($Catalyst::Plugin::Log::Dispatch::HasTimeHiRes) { }
|
137
|
0 |
0 |
if ($needs_caller)
|
152
|
0 |
0 |
if ($1 and $2) { }
|
|
0 |
0 |
elsif ($1) { }
|
|
0 |
0 |
elsif ($3) { }
|
|
0 |
0 |
elsif ($4) { }
|
176
|
0 |
0 |
if ($needs_caller)
|
188
|
0 |
0 |
if ($1 and $2) { }
|
|
0 |
0 |
elsif ($1) { }
|
|
0 |
0 |
elsif ($3) { }
|
206
|
0 |
0 |
if ($Catalyst::Plugin::Log::Dispatch::HasTimePiece) { }
|
245
|
0 |
0 |
if (keys %{$$self{'outputs'};}) { }
|
249
|
0 |
0 |
if ($$self{'outputs'}{$_}{'rtf'}) { }
|
253
|
0 |
0 |
if $$self{'outputs'}{$_}{'callbacks'}
|
287
|
0 |
0 |
if $self->abort
|
293
|
0 |
0 |
if ($self->abort or not scalar @{$self->_body;}) { }
|