Log::Any::Adapter::Catalyst - Enable error and status logging in Catalyst Models via Log::Any
In a Catalyst Model,
etc (anywhere you don't have
use Log::Any qw($log); $log->debug( "Sent to $c->log() if called from a Catalyst model" );
In a your main Catalyst module (MyApp.pm):
use Log::Any::Adapter; Log::Any::Adapter->set('Catalyst', logger => __PACKAGE__->log);
trace -> debug debug -> debug info (inform) -> info notice -> info warning (warn) -> warn error (err) -> error critical (crit, fatal) -> fatal alert -> fatal emergency -> fatal
Copyright (C) 2011 Mark Grimes, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.