No. You should call it in code after having assigned new values to appender
properties.
Heri
-Original Message-
From: Rahul [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 07, 2006 3:20 PM
To: log4j-user@logging.apache.org
Subject: activateOptions() in RollingFileAppender
Hi
I am using log4j in my struts application.
And only code I have written in my classes is
Logger logger=Logger.getLogger(ClassName.class); which creates a logger
instance
then
logger.info(some log);
Where should I call activateOptions() and how to invoke that piece of code?
Bender Heri wrote:
-Original Message-
From: Rahul [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 07, 2006 3:29 PM
To: Log4J Users List
Subject: Re: activateOptions() in RollingFileAppender
I am using log4j in my struts application.
And only code I have written in my classes is
Logger logger
On Feb 7, 2006, at 8:21 AM, Bender Heri wrote:
No. You should call it in code after having assigned new values to
appender properties.
Heri
When configuring log4j using a configuration file, you are not
responsible for calling activateOptions(), the configuration file
reader will call
Hi Curt,
You said when configuration file (log4j.xml in my case) is used for
configuring log4j, the configuration file reader will call the
activateOptions().
But what needs to be written in configuration file which will tell the
configuration file reader to call activateOptions() ?
I did
On Feb 7, 2006, at 10:48 PM, Rahul wrote:
Hi Curt,
You said when configuration file (log4j.xml in my case) is used for
configuring log4j, the configuration file reader will call the
activateOptions().
But what needs to be written in configuration file which will tell
the configuration