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:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to