On Fri, 22 Mar 2002, Cory Trese wrote:

> List --
>
> I'm wondering if anyone else has put effort towards finding a
> CGI::Application compatible logging service that is fast and easy to use
> within the framework created by CGI::Application and HTML::Template.

Cory,

For logging, I use the CGI::Carp module, usually the "carp" function. I
usually send output to the standard web server log file. Some folks like
to use seperate logs for each application, and CGI::Carp supports that.
That also helps some with debugging. I also use a custom run mode called
error() to return select unexpected conditions to the browser. (Usually
this is stuff I'm expecting users might see, not just techs.) The
routine supports a debug flag that dumps extra information to the
browser about the environment at the time of the error. I find I rarely
use that now for whatever reason, though. I've recently looked into
using Log::Dispatch and related modules for error handling, but haven't
taken it for a complete test drive yet.


  -mark
http://mark.stosberg.com/


---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/[email protected]/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to