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 T Master <tm...@iknowledgeinc.com> on 2001/12/10 18:55:23 UTC
FileAppender.setFile(newFile) not working?
Strange problem I'm experiencing.
I have a FileAppender.
I changed the file it logs to at run-time.
Whilst getFile() returns the new filepath correctly,
the old file is still being logged to.
Anyone experienced, or tried this feature?
T Master
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: FileAppender.setFile(newFile) not working?
Posted by T Master <tm...@iknowledgeinc.com>.
Ahhhhh!!!
Thats in the javadoc too for the method!
*slaps himself*
Thanks Ceiki.
----- Original Message -----
From: "Ceki Gulcu" <ce...@qos.ch>
To: "Log4J Users List" <lo...@jakarta.apache.org>
Sent: Monday, December 10, 2001 11:35 AM
Subject: Re: FileAppender.setFile(newFile) not working?
>
> Hello,
>
> setFile must be followed by activateOptions. HTH, Ceki
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: FileAppender.setFile(newFile) not working?
Posted by Ceki Gulcu <ce...@qos.ch>.
Hello,
setFile must be followed by activateOptions. HTH, Ceki
At 10:55 10.12.2001 -0700, you wrote:
>Strange problem I'm experiencing.
>
>I have a FileAppender.
>
>I changed the file it logs to at run-time.
>Whilst getFile() returns the new filepath correctly,
>the old file is still being logged to.
>
>Anyone experienced, or tried this feature?
>
>
>T Master
>
>
>--
>To unsubscribe, e-mail: <ma...@jakarta.apache.org>
>For additional commands, e-mail: <ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>