Supervisor/LogDispatch.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 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Supervisor/Interface.pm ↑ Summary Supervisor/Supervised/Interface.pm »
1 #!/usr/bin/perl
2  
3 package POE::Component::Supervisor::LogDispatch;
4 23 ▶use Moose::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 23 ▶use namespace::clean -except => 'meta';
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 23 with qw(MooseX::LogDispatch);
9  
10 # borked due to role impl... =P
11 # has '+use_logger_singleton' => ( default => 1 );
12  
13 23 has 'use_logger_singleton' => (
14 is => "rw",
15 isa => "Bool",
16 default => 1
17 );
18  
19 23 __PACKAGE__
20  
21 __END__
22  
23 =pod
24  
25 =head1 NAME
26  
27 POE::Component::Supervisor::LogDispatch - Logging role
28  
29 =head1 SYNOPSIS
30  
31 with qw(POE::Component::Supervisor::LogDispatch);
32  
33 =head1 DESCRIPTION
34  
35 This is a variation on L<MooseX::LogDispatch> that ensures that a global
36 L<Log::Dispatch::Config> singleton will be respected.
37  
38 =cut
39  
40  
« Supervisor/Interface.pm ↑ Summary Supervisor/Supervised/Interface.pm »