Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / November 2006

Tip: Looking for answers? Try searching our database.

log4j: new file each time

Thread view: 
Robert Mark Bram - 16 Nov 2006 20:43 GMT
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
:)
Manish Pandit - 16 Nov 2006 22:30 GMT
http://www.vipan.com/htdocs/log4jhelp.html

As much info as you want on using and configuring log4j :)

-cheers,
Manish


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.