POE::Component::Supervisor::LogDispatch - Logging role


POE-Component-Supervisor documentation Contained in the POE-Component-Supervisor distribution.

Index


Code Index:

NAME

Top

POE::Component::Supervisor::LogDispatch - Logging role

SYNOPSIS

Top

    with qw(POE::Component::Supervisor::LogDispatch);

DESCRIPTION

Top

This is a variation on MooseX::LogDispatch that ensures that a global Log::Dispatch::Config singleton will be respected.


POE-Component-Supervisor documentation Contained in the POE-Component-Supervisor distribution.

#!/usr/bin/perl

package POE::Component::Supervisor::LogDispatch;
use Moose::Role;

use namespace::clean -except => 'meta';

with qw(MooseX::LogDispatch);

# borked due to role impl... =P
# has '+use_logger_singleton' => ( default => 1 );

has 'use_logger_singleton' => (
    is => "rw",
    isa => "Bool",
    default => 1
);

__PACKAGE__

__END__