log4j: new file each time

R

Robert Mark Bram

Hi All,

We have been using a rolling file appender with the following config:

log4j.appender.file=org.apache.log4j.RollingFileAppender
log4j.appender.file.File=/opt/etech/testCase.log
log4j.appender.file.MaxFileSize=10MB
log4j.appender.file.MaxBackupIndex=10
log4j.appender.file.layout=org.apache.log4j.PatternLayout
log4j.appender.file.layout.ConversionPattern=%d %p %x %c - %m%n


Does anyone know how to make sure this creates a new file each run?
I.e. I don't want to see the output from previous runs.

Also, does anyone know where to find a definitive list of what all the
options are? I.e.
log4j.appender.<appenderName>.OPTION

I haven't been able to find this in the log4j javadocs or manual.

Rob
:)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top