[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cgiapp] ANNOUNCE: CGI::Application::Plugin::LogDispatch


I finally got around to wrapping up my Log::Dispatch plugin for
CGI::App.  I would appreciate some feedback on the features, and what
can be done to improve it.

I think I like it.
I did not know about Log::Dispatch before, just Log4Perl, which seemed a little too complex for my needs. I could eliminate a lot of custom logging code from my web apps by using this plugin.

A question:
I am doing two sorts of logging at the moment, the normal STDERR logging of warnings (using warn) and in addition to that a complete logging of informational messages, which are collected in memory
until the end of the request.
Normally, this log is discarded after the request, but if a warning or error occurred during the request, this whole log is written to STDERR so that you can see all the query parameters, client IP, cookies, SQL that was run and so on. Even if no warning occured, developers can put their browser into "debug" mode and then this log will
be appended to the normal HTML output.

So what I need here is a Log::Dispatcher that logs into a memory structure which I can later query
(and reset for the next request).
Is there such a module?

A suggestion:
CGI::App already has built-in diagnostics functions (the dump() runmode). Would it make sense for your plugin to include this output automatically (at a very low level)?
Maybe a new option ( CGIAPP_DUMP => 'info' ) ?




Thilo


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


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.