blib/lib/Dancer2/Logger/Diag.pm

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