File Coverage

blib/lib/Dancer2/Logger/Console.pm
Criterion Covered Total %
statement 3 3 100.0
branch n/a
condition n/a
subroutine 1 1 100.0
pod n/a
total 4 4 100.0


line stmt bran cond sub pod time code
1             # ABSTRACT: Console logger
2             $Dancer2::Logger::Console::VERSION = '0.400000';
3             use Moo;
4 61     61   111003  
  61         6825  
  61         365  
5             with 'Dancer2::Core::Role::Logger';
6              
7             my ( $self, $level, $message ) = @_;
8             print STDERR $self->format_message( $level => $message );
9             }
10              
11             1;
12              
13              
14             =pod
15              
16             =encoding UTF-8
17              
18             =head1 NAME
19              
20             Dancer2::Logger::Console - Console logger
21              
22             =head1 VERSION
23              
24             version 0.400000
25              
26             =head1 DESCRIPTION
27              
28             This is a logging engine that allows you to print debug messages on the
29             standard error output.
30              
31             =head1 METHODS
32              
33             =head2 log
34              
35             Writes the log message to the console.
36              
37             =head1 CONFIGURATION
38              
39             The setting C<logger> should be set to C<console> in order to use this logging
40             engine in a Dancer2 application.
41              
42             There is no additional setting available with this engine.
43              
44             =head1 SEE ALSO
45              
46             L<Dancer2::Core::Role::Logger>
47              
48             =head1 AUTHOR
49              
50             Dancer Core Developers
51              
52             =head1 COPYRIGHT AND LICENSE
53              
54             This software is copyright (c) 2022 by Alexis Sukrieh.
55              
56             This is free software; you can redistribute it and/or modify it under
57             the same terms as the Perl 5 programming language system itself.
58              
59             =cut