Log::Log4perl::Appender::CatalystProxy
Generally speaking you probably don't want to use this directly, instead you should use Catalyst::Plugin::Log::Log4perlSimple.
If you do want do use it, refer to the Log::Log4perl documentation.
This is a custom appender for Log::Log4perl that proxies messages to other appenders. It is capable of pushing messages out to multiple appenders, and also of buffering messages until an appender is allocated to it.
Martyn Smith <martyn@catalyst.net.nz>
Create an instance of this appender.
Options are:
- autoflush (boolean that indicates if logged messages should be proxied immediately) - appenders (arrayref of appenders to proxy to; defaults to [])
Implementation of the log method for Log::Log4perl::Appender
Return a list of the appenders this object it proxying to
Add $appender to the list of appenders this object is proxying for
Remove $appender from the list of appenders this object is proxying for
Push everything in the buffer out to configured appenders then empty the buffer.
Clear the buffer without pushing the messages out to configured appenders
To install Catalyst::Plugin::Log::Log4perlSimple, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catalyst::Plugin::Log::Log4perlSimple
CPAN shell
perl -MCPAN -e shell install Catalyst::Plugin::Log::Log4perlSimple
For more information on module installation, please visit the detailed CPAN module installation guide.