NAME

Log::Log4perl::Appender::CatalystProxy

SYNOPSIS

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.

DESCRIPTION

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.

AUTHOR

Martyn Smith <martyn@catalyst.net.nz>

METHODS

new(%options)

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 [])

log(%params)

Implementation of the log method for Log::Log4perl::Appender

appenders()

Return a list of the appenders this object it proxying to

add_appender($appender)

Add $appender to the list of appenders this object is proxying for

remove_appender($appender)

Remove $appender from the list of appenders this object is proxying for

flush()

Push everything in the buffer out to configured appenders then empty the buffer.

clear()

Clear the buffer without pushing the messages out to configured appenders