Ricardo SIGNES > Log-Dispatchouli-2.005 >
Log::Dispatchouli::Global    Annotate this POD   New  1 Open  1
Stalled  1 View/Report Bugs Module Version: 2.005   Source  
Latest Release: Log-Dispatchouli-2.009
Log::Dispatchouli::Global - a system for sharing a global,
dynamically-scoped logger   version 2.005   Warning: This
interface is still experimental.  Log::Dispatchouli::Global is a
framework for a global logger object. In your top-level programs
that are actually executed, you'd add something like this:
use Log::Dispatchouli::Global '$Logger' => {     init => {
ident     => 'My::Daemon',       facility  => 'local2',
to_stdout => 1,  This will import a $Logger into your program,
and more importantly will initialize it with a new
Log::Dispatchouli object created by passing the value for the
init parameter to Log::Dispatchouli's new method.  Much of the
rest of your program, across various libraries, can then just
use this:    use Log::Dispatchouli::Global '$Logger';    sub
whatever {      $L