Branch Coverage

blib/lib/Circle/Loggable.pm
Criterion Covered Total %
branch 1 58 1.7


line true false branch
46 8 0 unless $self->setting_log_enabled
47 0 0 if $NO_LOG
50 0 0 if eval { do { my $logger = $self->logger($time); my $ctx = $self->{'logctx'}; $logger->log($ctx, $time, $event, $args); 1 } }
82 0 0 unless @pcs
99 0 0 unless defined $limit
104 0 0 if $path_upper > $path_used
111 0 0 exists $formats{$2} ? :
116 0 0 unless $timestamp[3]
125 0 0 $ts_used{$_} ? :
126 0 0 $ts_used{$_} ? :
153 0 0 if (defined $self->{'logpath'} and $self->{'logpath'} ne $path)
156 0 0 if (defined $self->{'loguntil'} and $time >= $self->{'loguntil'})
162 0 0 unless (-d $dir)
163 0 0 unless make_path($dir, {'mode', 448})
169 0 0 unless (defined $self->{'logpath'})
186 0 0 unless my $logger = $LOGGER_FOR_PATH{$self->{'logpath'} // ''}
189 0 0 unless ($logger->refcount)
210 0 0 if ($self->_setting_log_enabled_inherits) { }
0 0 elsif ($self->setting_log_enabled) { }
211 0 0 $self->setting_log_enabled ? :
220 0 0 if ($self->setting_log_enabled)
266 0 0 'Logging inherited (currently ' . $self->setting_log_enabled ? :
281 0 0 unless (rename $self->{'logpath'}, $path)
305 0 0 unless CORE::open my $fh, '>>', $path
327 0 0 if $self->{'refcount'}
338 0 0 if length $ctx->path_residue
355 0 0 if (not ref $args) { }
0 0 elsif (ref $args eq 'HASH') { }
0 0 elsif (ref $args eq 'ARRAY') { }