You misunderstood. If you change the filename dynamically at runtime, then activate it by calling appender.activateOptions();
if you use a config file, then you do NOT need to call appender.activateOptions() (until later if u change the filename at runtime). In the config file... you be specifying the file option. With the properties file: log4j.appender.MYAPPENDER.File = c:\\log.txt Research the XML format for yourself. HTH T Master ----- Original Message ----- From: "Marco Perrando" <[EMAIL PROTECTED]> To: "Log4J Users List" <[EMAIL PROTECTED]> Sent: Wednesday, February 20, 2002 9:08 AM Subject: Re: Use of PropertyConfigurator > Where must I call it? Is this ironic? :) > If I call it in my code I get those annoying messages two times!! :))) > > There should be a way to avoid the PropertyConfigurator to call > activateOptions() for a particular Appender, so that it can be called inside > the code. That should work. But is there an option for the property file > that tells to the Configurator to NOT call activateOptions for an Appender? > > ----- Original Message ----- > From: "T Master" <[EMAIL PROTECTED]> > To: "Log4J Users List" <[EMAIL PROTECTED]> > Sent: Wednesday, February 20, 2002 4:46 PM > Subject: Re: Use of PropertyConfigurator > > > > Call : > > > > appender.activateOptions(); > > > > :) > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>