From: William M. <wi...@kn...> - 2004-01-13 19:30:24
|
On Tue, Jan 13, 2004 at 08:19:53AM -0800, Kevin Goess wrote: > Mike Schilli wrote: > | definitely the way to go for now. Hmm ... just had an idea: How about if > | Log::Log4perl featured an init_once() method, like Apache::DBI, which > | connects (inits) only if it doesn't have a valid connection > | (configuration) yet? > > Brilliant! The only question I have is: why didn't we think of that before? Perhaps because it is only needed by cgi scripts running under Apache::Registry. It seems like modules written for modperl could run the init just once. How about another feature? Would there be a way to have this module append configuration info when init is called by two separate applications? That would allow Log4perl configurations to be kept with their respective applications and yet run under the same logger. Or is modifying the configuration of a running logger not suggested? Thanks, William -- Knowmad Services Inc. http://www.knowmad.com |