falinf has asked for the wisdom of the Perl Monks concerning the following question:
greetings
I'm using catalyst and I have a custom model that gets data from a backend process. I of course want it to be able to log. Since I can't access
$c->log
should I just use
MyApp->log
for logging inside the model?
I want to do it in a correct way and keep all logging centralized. Also if I switch to another type of logging (ex via
$c->log( MyLogger->new );
) I don't want to have to configure that in more than one place.
thank you so muchs!
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Logging in Catalyst model
by stonecolddevin (Parson) on Jul 13, 2011 at 19:42 UTC | |
Re: Logging in Catalyst model
by Anonymous Monk on Nov 05, 2011 at 15:47 UTC |
Back to
Seekers of Perl Wisdom