[cgiapp] Seeking opinions on how to configure logging

Ron Savage ron at savage.net.au
Wed Jun 17 21:01:12 EDT 2009


Hi Folks

I'm developing a new CGI::App-based module, to be released shortly, and
I'm keen to have an option in its config file which allows logging.

But how best to do that?

Amongst the many logging modules, I use Log::Dispatch.

Or, should I allow the user to configure any logging package? I think
that's too open-ended to add to a single module.

What I'd like to know is what you think about configuring logging.

For instance, one way is to look for a line in the config file such as:
log=/some/log/x.conf
with the absence of such a line meaning do no logging, while the
presence of such a line means it needs to be parsed and processed.

I'm aware of Log::Dispatch::Config (with long-standing bug reports), but
I'm wondering what else people are using or doing.

-- 
Ron Savage
ron at savage.net.au
http://savage.net.au/index.html




More information about the cgiapp mailing list