szabgab has asked for the wisdom of the Perl Monks concerning the following question:
Is there a way to configure Log::Dispatcher so it will only print log messages from within a given module or even from within a specific method? Better yet to set log level on calls starting from specific places?
e.g. my configuration file would look something like this:
meaning that if the debug message was sent from within the My::Frobnic module or from within the My::Frobnic::DBI::setup method I'd like to have 'debug' level logging while in all other places 'critical' level only.[logger] default=critical My::Frobnic=debug My::Frobnic::DBI::setup=debug
Update
link updated, I was talking about Log::Dispatch, thanks to rinceWind
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: logging only calls within a module
by rhesa (Vicar) on Dec 05, 2006 at 16:10 UTC | |
by szabgab (Priest) on Dec 05, 2006 at 18:46 UTC |