I am using CGI::Application::Plugin::LogDispatch for logging with a
'callbacks' paramter
so I can fine tune the log message adding various application specific values.

I would like to control what gets printed in two dimensions. One of
them is the log level,
that's easy. The other one is per module.

When I need to debug a specific module - using the logs and not the debugger -
I would like to configure that while all the appication is logging
ERROR and higher
anything within My::App::Widget will print every log information.
Even more, I might would like to increase the logging only for the
My::App::Widget::problem_solver method and not the rest of the Widget.


I was thinking of checking the caller() in the callback and comparing
it to some
definition in a file.
Probably similarry to what you can do with Log::Log4perl.

Before trying to implement that I would like to check if there is some
solution already
or how do you ppl do selective logging?

Gabor

---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/[email protected]/
             http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to