|
From: Mike S. <msc...@ao...> - 2003-09-24 23:09:44
|
William McKee wrote:
> I'm new to Log4perl but am looking forward to using such a well
> architected logging environment!
Thanks - of course this honor goes to Ceki who architected Log4j :).
> I am in the process of inserting
> logging statements into an application that I run in mod_perl. During
> development, I use Apache::Reload to reload any modules which get
> updated.
I see ... in a persistent environment like modperl this will cause
Log::Log4perl->init() to be called twice, which in the current release
will create duped loggers. To alleviate the problem until it gets fixed
(next release), just use
Log::Log4perl->reset();
Log::Log4perl->init(...);
in your application instead of just calling init(). Or, just call init()
once at server startup and not during the reload.
--
-- Mike
Mike Schilli
m...@pe...
|