line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Dancer::Logger::Note; |
2
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:SUKRIA'; |
3
|
|
|
|
|
|
|
#ABSTRACT: Test::More note() logging engine for Dancer |
4
|
|
|
|
|
|
|
$Dancer::Logger::Note::VERSION = '1.3520'; |
5
|
1
|
|
|
1
|
|
743
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
32
|
|
6
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
25
|
|
7
|
1
|
|
|
1
|
|
4
|
use base 'Dancer::Logger::Abstract'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
463
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub init { |
10
|
1
|
|
|
1
|
1
|
3
|
my $self = shift; |
11
|
1
|
|
|
|
|
8
|
$self->SUPER::init(@_); |
12
|
1
|
|
|
|
|
9
|
require Test::More; |
13
|
|
|
|
|
|
|
} |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
sub _log { |
16
|
1
|
|
|
1
|
|
962
|
my ($self, $level, $message) = @_; |
17
|
|
|
|
|
|
|
|
18
|
1
|
|
|
|
|
4
|
Test::More::note( |
19
|
|
|
|
|
|
|
$self->format_message( $level => $message ) |
20
|
|
|
|
|
|
|
); |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
1; |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
__END__ |