Catalyst::Plugin::Log4perl::Simple - Simple Log4perl setup for Catalyst application


Catalyst-Plugin-Log4perl-Simple documentation  | view source Contained in the Catalyst-Plugin-Log4perl-Simple distribution.

Index


NAME

Top

Catalyst::Plugin::Log4perl::Simple - Simple Log4perl setup for Catalyst application

VERSION

Top

version 0.004

SYNOPSIS

Top

 use Catalyst qw/ ... Log4Perl::Simple /;

 $c->log->warn("Now we're logging through Log4perl");

DESCRIPTION

Top

This is a trivial Catalyst plugin that searches for a log4perl configuration file and uses it to configure Catalyst::Log::Log4perl as the logger for your application. If no configuration is found, a sensible default is provided.

For an application My::App, the following locations are searched:

my_app_log.conf
log.conf
../my_app_log.conf
../log.conf
/etc/my_app_log.conf
/etc/my_app/log.conf

METHODS

Top

setup

Called by Catalyst to set up the plugin. You should not need to call this yourself.

BUGS

Top

There is no test suite.

SEE ALSO

Top

Catalyst::Log::Log4perl

AUTHOR

Top

Peter Corlett <abuse@cabal.org.uk>

COPYRIGHT AND LICENSE

Top


Catalyst-Plugin-Log4perl-Simple documentation  | view source Contained in the Catalyst-Plugin-Log4perl-Simple distribution.