| 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 | |||