logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hancke Patrick <Patrick.Han...@siemens.com>
Subject RE: reset/empty logs on start
Date Thu, 14 Aug 2003 12:17:55 GMT
Hi Tim,


try to use the property "log4j.appender.R.Append=false" which will start
writing a new log file when your application starts.


Hope this helps you,
Patrick Hancke

> -----Original Message-----
> From: Tim Davidson [mailto:tim.davidson@greenhatconsulting.com]
> Sent: Thursday, August 14, 2003 14:11
> To: log4j-user@jakarta.apache.org
> Subject: reset/empty logs on start
> 
> 
> Hi,
> 
>  I am using the fileAppender to append the log file.
>  What I want to do is empty the log file when the (tomcat) 
> application starts. i.e when I create the logger, I want to 
> use an empty log file.
>  Any suggestions on how can I do this? 
> 
> Thanks in advance.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: log4j-user-help@jakarta.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-user-help@jakarta.apache.org


Mime
View raw message