Magpie/Role/Logging.pm

filter: Statementstmt 95.2% 20 / 21 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 85.7% 6 / 7 Podpod n/a totaltotal 92.8% 26 / 28 CC 1 SCAR 1.3
CC
1
Cov
95%
__ANON__
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.1
« Magpie/App.pm ↑ Summary Magpie/Action/Missing.pm »
1 #
2 # This file is part of App-Magpie
3 #
4 # This software is copyright (c) 2011 by Jerome Quelin.
5 #
6 # This is free software; you can redistribute it and/or modify it under
7 # the same terms as the Perl 5 programming language system itself.
8 #
9 5 ▶use 5.012;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 5 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 5 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 package App::Magpie::Role::Logging;
14 # ABSTRACT: sthg that can log
15 5 $App::Magpie::Role::Logging::VERSION = '2.010';
16 5 ▶use Moose::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
17 5 ▶use MooseX::Has::Sugar;
Subroutine BEGIN: called CC=1 SCAR=0.0
18  
19 5 ▶use App::Magpie::Logger;
Subroutine BEGIN: called CC=1 SCAR=0.0
20  
21  
22 # -- public attributes
23  
24
25 has logger => (
26 ro, lazy,
27 isa => "App::Magpie::Logger",
28 handles => [ qw{ log log_debug log_fatal } ],
29 0 ▶ default => sub { App::Magpie::Logger->instance }
Subroutine __ANON__: not called CC=1 SCAR=6.9
30 5 );
31  
32
33 5 1;
34  
35 __END__
« Magpie/App.pm ↑ Summary Magpie/Action/Missing.pm »