Man Page: plack::middleware::logdispatch
Operating Environment: debian
Section: 3pm
Plack::Middleware::LogDispatch(3pm) User Contributed Perl Documentation Plack::Middleware::LogDispatch(3pm)NAMEPlack::Middleware::LogDispatch - Uses Log::Dispatch to configure loggerSYNOPSISuse Log::Dispatch; my $logger = Log::Dispatch->new; $logger->add( Log::Dispatch::File->new(...) ); $logger->add( Log::Dispatch::DesktopNotification->new(...) ); builder { enable "LogDispatch", logger => $logger; $app; } # use with Log::Dispatch::Config use Log::Dispatch::Config; Log::Dispatch::Config->configure('/path/to/log.conf'); builder { enable "LogDispatch", logger => Log::Dispatch::Config->instance; ... }DESCRIPTIONLogDispatch is a Plack::Middleware component that allows you to use Log::Dispatch to configure logging object.CONFIGURATIONlogger Log::Dispatch object to send logs to. Required.AUTHORTatsuhiko MiyagawaSEE ALSOLog::Dispatch perl v5.14.2 2011-02-27 Plack::Middleware::LogDispatch(3pm)
| Similar Topics in the Unix Linux Community |
|---|
| How can I do this in VI editor? |
| Introduction |
| Weird 'find' results |
| New UNIX and Linux History Sections |
| My first PERL incarnation... Audio Oscillograph |