You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Ceki Gülcü <cg...@qos.ch> on 2001/02/20 13:48:41 UTC

Re: setting options for a file appender specified in a property file

Hi Shashi,

You are probably forgetting to call activateOptions(). Ceki

At 12:23 20.02.2001 +0000, you wrote:
>hi all,
> i am new to using log4j.
>in my project, a file appender is defined in the configuration
>(property)file. in the proeperty file i donot give the name of the
>destination for the appender. instead i wish to set it programmatically
>after retrieving the file appender and then using
>setOption(String key,String value) method. but it doesn't seem to work.
>on running i get a message saying that "no output target set for the file
>appender"
>can u help me.
>thanks in advance.

----
Ceki Gülcü          Web:   http://qos.ch      
av. de Rumine 5     email: cgu@qos.ch (preferred)
CH-1005 Lausanne           ceki_gulcu@yahoo.com
Switzerland         Tel: ++41 21 351 23 15