The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

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

VERSION

version 0.005

SYNOPSIS

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

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

DESCRIPTION

This is a trivial Catalyst plugin that searches for a log4perl configuration file and uses it to configure Log::Log4perl::Catalyst 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

setup

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

BUGS

There is no test suite.

SEE ALSO

Log::Log4perl::Catalyst

AUTHOR

Peter Corlett <abuse@cabal.org.uk>

COPYRIGHT AND LICENSE

This software is copyright (c) 2011 by Peter Corlett.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.