Branch Coverage

blib/lib/Crane/Logger.pm
Criterion Covered Total %
branch 16 22 72.7


line true false branch
91 0 2 unless close $MESSAGES_FH
92 0 2 unless close $ERRORS_FH
99 12 0 if ($LOG_LEVEL >= $LOG_FATAL)
110 10 2 if ($LOG_LEVEL >= $LOG_ERROR)
121 8 4 if ($LOG_LEVEL >= $LOG_WARNING)
132 6 6 if ($LOG_LEVEL >= $LOG_INFO)
143 4 8 if ($LOG_LEVEL >= $LOG_DEBUG)
154 2 10 if ($LOG_LEVEL >= $LOG_VERBOSE)
167 0 42 unless (defined $fh)
180 0 42 !defined($message) || ref $message ? :
181 0 42 unless print {$fh;} "[$datetime] $line\n"