blib/lib/Log/Deep.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 41 | 71 | 57.7 |
line | l | !l | condition |
---|---|---|---|
393 | 1 | 1 | $self->{'old_warn_handle'} && 1 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
247 | 8 | 3 | 1 | not $self->{'reopening'} and -s $file |
271 | 4 | 0 | 0 | defined $self->{'log_session_count'} and $self->{'log_session_count'} == 0 |
302 | 3 | 1 | 2 | @level == 1 and $level[0] =~ /^\d$/ |
312 | 3 | 0 | 1 | @level == 1 and &any(sub { $_ eq $level[0]; } , @LOG_LEVELS) |
373 | 1 | 0 | 1 | $action == 1 and not $self->{'old_warn_handle'} |
0 | 1 | 0 | $action == 0 and $self->{'old_warn_handle'} |
line | l | !l | condition |
---|---|---|---|
48 | 0 | 4 | $param{-'style'} || 'none' |
51 | 0 | 4 | $param{-'rand_max'} || 10000 |
55 | 0 | 4 | $param{-'vars_config'} || {} |
59 | 0 | 4 | $param{-'vars'} || {} |
184 | 8 | 5 | $$data{-'level'} || '(none)' |
238 | 0 | 4 | $ENV{'TMP'} || '/tmp' |
239 | 4 | 0 | (split(m[/], $0, 0))[-1] || 'deep' |
240 | 8 | 4 | $self->{'date_fmt'} ||= '%Y-%m-%d' |
287 | 15 | 4 | $self->{'level'} ||= {map({$_, 0;} @LOG_LEVELS)} |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
81 | 1 | 0 | 0 | not ref $params[0] or ref $params[0] ne 'HASH' |
95 | 1 | 0 | 0 | not ref $params[0] or ref $params[0] ne 'HASH' |
109 | 1 | 0 | 0 | not ref $params[0] or ref $params[0] ne 'HASH' |
123 | 1 | 0 | 1 | not ref $params[0] or ref $params[0] ne 'HASH' |
137 | 1 | 0 | 0 | not ref $params[0] or ref $params[0] ne 'HASH' |
152 | 1 | 0 | 0 | not ref $params[0] or ref $params[0] ne 'HASH' |
168 | 1 | 0 | 0 | not ref $params[0] or ref $params[0] ne 'HASH' |
238 | 8 | 4 | 0 | $self->{'log_dir'} ||= $ENV{'TMP'} || '/tmp' |
239 | 8 | 4 | 0 | $self->{'log_name'} ||= (split(m[/], $0, 0))[-1] || 'deep' |
243 | 8 | 0 | 4 | $self->{'file'} || "$self->{'log_dir'}/$self->{'log_name'}_$self->{'log_date'}.log" |
275 | 0 | 5 | 0 | $session_id || int rand $self->{'rand_max'} |