Peter Corlett > Catalyst-Plugin-Log4perl-Simple-0.002 > Catalyst::Plugin::Log4perl::Simple

Download:
Catalyst-Plugin-Log4perl-Simple-0.002.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Module Version: 0.002   Source  

NAME ^

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

VERSION ^

Version 0.001

SYNOPSIS ^

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

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

This is a Catalyst plugin that installs a Log4perl handler as the Catalyst logger. For an application My::App, it looks for a Log4perl configuration file in the following locations:

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

If no configuration file is found, it uses a default.

AUTHOR ^

Peter Corlett, <abuse at cabal.org.uk>

BUGS ^

The rather, umm, special way it hooks in to setup() to get called, and the subsequent @ISA hacker should probably be improved.

SEE ALSO ^

Catalyst::Log::Log4perl

COPYRIGHT & LICENSE ^

Copyright 2009 Peter Corlett, all rights reserved.

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