blib/lib/Dancer2/Logger/Console.pm

filter: Statementstmt 100% 8 / 8 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod 100% 1 / 1 totaltotal 100% 11 / 11 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
log
1.0
CRAP 1.0
« blib/lib/Dancer2/Logger/Capture/Trap.pm ↑ Summary blib/lib/Dancer2/Logger/Diag.pm »
1 package Dancer2::Logger::Console;
2 # ABSTRACT: Console logger
3 12 $Dancer2::Logger::Console::VERSION = '2.2.2';
4 16 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 12 with 'Dancer2::Core::Role::Logger';
7  
8 20 ▶sub log {
Subroutine log: called CC=1 SCAR=0.0
Pod documented
9 20 my ( $self, $level, $message ) = @_;
10 20 print STDERR $self->format_message( $level => $message );
11 }
12  
13 12 1;
14  
15 __END__
« blib/lib/Dancer2/Logger/Capture/Trap.pm ↑ Summary blib/lib/Dancer2/Logger/Diag.pm »