From: Mike S. <m...@pe...> - 2006-10-02 16:06:55
|
On Mon, 2 Oct 2006, Roger Day wrote: > Apologies if this is a n00b question - I've already trawled the docos. > > I've a log.conf file which contains the configuration for a STDOUT > appender. I initialise log4perl with the init call using that log.conf, > however the STDOUT appender isn't invoked at this stage. Later on, I want > to invoke the STDOUT appender in the code - something like > "$logger.add_appender("<something that goes here which indicates the > STDOUT appender>") Is this in the right barnyard? What is the correct > procedure please? If you want to reference an appender in the configuration by name, use Log::Log4perl->appender_by_name("appender_name") as described in http://log4perl.sourceforge.net/d/Log/Log4perl.html#356d5 -- Mike Mike Schilli m...@pe... |