From: Mike S. <msc...@ao...> - 2004-07-02 07:50:36
|
Aldrich, Timothy wrote on 7/1/2004, 12:25 PM: > sub new { > Log::Log4perl::init( %foo_logging_config ); We advise against using init() in constructors. Init() should be called once (and only once) in the main program. And there's only one L4p configuration within a process. > How can I set up the logging in Bar so that it does not touch > Foo's logging config ? http://log4perl.sourceforge.net/releases/Log-Log4perl/docs/html/Log/Log4perl.html#a36c1 explains how to ensure this happens only once. -- -- Mike Mike Schilli |