Catalyst::Plugin::Log4perl::Simple - Simple Log4perl setup for Catalyst application
Version 0.003
use Catalyst qw/ ... Log4Perl::Simple /; $c->log->warn("Now we're logging through Log4perl");
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:
Peter Corlett, <abuse at cabal.org.uk>
<abuse at cabal.org.uk>
Versions earlier than 0.002 were overcomplicated and used a now-deprecated NEXT method. Under recent Catalyst, this would break plugins listed after it in the "use Catalyst" line.
Catalyst::Log::Log4perl
Copyright 2009,2010 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.
To install Catalyst::Plugin::Log4perl::Simple, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catalyst::Plugin::Log4perl::Simple
CPAN shell
perl -MCPAN -e shell install Catalyst::Plugin::Log4perl::Simple
For more information on module installation, please visit the detailed CPAN module installation guide.