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 that by giving an additional parameter under RollingFileAppender as:
<param name="activateOptions()" value="true" />
but its not working
any suggestion?


Curt Arnold wrote:

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 it for you. You would only need to call activateOptions() if you were constructing and configuring components in your Java source code. In that case, you would construct the object, set the appropriate properties and then call activateOptions() before you connected it to the configuration.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to