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 Garrett Zork <zo...@lycos.com> on 2002/03/30 06:02:11 UTC

Basic question

How do I configure log4j so that it over-writes the log file
instead of appending to it?


See Dave Matthews Band live or win a signed guitar
http://r.lycos.com/r/bmgfly_mail_dmb/http://win.ipromotions.com/lycos_020201/splash.asp 

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Basic question

Posted by Ceki Gülcü <ce...@qos.ch>.
At 21:02 29.03.2002 -0800, you wrote:
>How do I configure log4j so that it over-writes the log file
>instead of appending to it?

The FileAppender has a property called "Append".

In a configuration script it looks like:

log4j.appender.X=org.apache.log4j.FileAppender
log4j.appender.X.File=xyz.log
log4j.appender.X.Append=false

Hope that helps,

--
Ceki
My link of the month: http://java.sun.com/aboutJava/standardization/


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>