File Coverage

blib/lib/App/perlimports/Role/Logger.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1             package App::perlimports::Role::Logger;
2              
3 77     77   727209 use Moo::Role;
  77         209  
  77         562  
4              
5             our $VERSION = '0.000052';
6              
7 77     77   38187 use Types::Standard qw( InstanceOf );
  77         225  
  77         588  
8              
9             has logger => (
10             is => 'ro',
11             isa => InstanceOf ['Log::Dispatch'],
12             predicate => '_has_logger',
13             writer => 'set_logger',
14             );
15              
16             1;
17              
18             # ABSTRACT: Provide a logger attribute to App::perlimports objects
19              
20             __END__
21              
22             =pod
23              
24             =encoding UTF-8
25              
26             =head1 NAME
27              
28             App::perlimports::Role::Logger - Provide a logger attribute to App::perlimports objects
29              
30             =head1 VERSION
31              
32             version 0.000052
33              
34             =head1 AUTHOR
35              
36             Olaf Alders <olaf@wundercounter.com>
37              
38             =head1 COPYRIGHT AND LICENSE
39              
40             This software is copyright (c) 2020 by Olaf Alders.
41              
42             This is free software; you can redistribute it and/or modify it under
43             the same terms as the Perl 5 programming language system itself.
44              
45             =cut