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 vikaas Karwal <vi...@in.niksun.com> on 2003/06/24 06:14:21 UTC

RE: Clearing Logs Files on the fly

Dear All,
 
I am using Log4j and I want to clear the log files i.e want to make the
files of 0kb and then fresh logs will be written to it. 
Could you please suggest the best possible way to accomplish it? Is
there any configuration parameter in log4j.properties.
Following is the code snippet of log4j.properties file.
 
log4j.appender.Event.MaxFileSize=256KB
log4j.appender.Event=org.apache.log4j.RollingFileAppender
log4j.appender.Event.layout=org.apache.log4j.PatternLayout
log4j.appender.Event.MaxBackupIndex=4
 
Thanks..