++ed by:
OALDERS MATTP

2 PAUSE users

Author image Martyn Smith
and 1 contributors

NAME

Catalyst::Log::Log4perlSimple

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, generally it would be in the form:

    __PACKAGE__->log(Catalyst::Log::Log4perlSimple->new);

DESCRIPTION

This is a replacement for Catalyst's Catalyst::Log object. It provides the same functionality (including flush/abort) so that plugins that don't want to log particular requests can do so successfully.

AUTHOR

Martyn Smith <martyn@catalyst.net.nz>

METHODS

_flush()

This method is the same as Catalyst::Log's _flush method. Depending on the abort flag it either clears the buffer, or flushes it to screen/file.

debug(...)

info(...)

warn(...)

error(...)

fatal(...)

is_debug(...)

is_info(...)

is_warn(...)

is_error(...)

is_fatal(...)

BUILD()

Invoked by Moose after the object is constructed, this just initialises Log4perl using a custom config which uses the Log::Log4perl::Appender::CatalystProxy appender.