File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other JSE/JEE APIs and the fly likes log4j DailyRollingFileAppender question Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Reply Bookmark "log4j DailyRollingFileAppender question" Watch "log4j DailyRollingFileAppender question" New topic
Author

log4j DailyRollingFileAppender question

Benjamin Hundley
Ranch Hand

Joined: Mar 06, 2006
Posts: 53
Does the DailyRolingFileAppender in log4j roll over if the program is not continuously running? I have a batch job written in Java that runs once a day and it is not continuously running. I am using log4j for logging. I have it configured to roll over each day and each new day that it runs it does not roll over to a new log file. It just appends to the old existing log file from the previous day. Does the program need to be continuously running for this feature to work?
m coffee
Greenhorn

Joined: Nov 10, 2010
Posts: 5
In our experience, once a rolling file appender is correctly configured, it creates a new file on each day change.

What is your configuration for the dailyrollingfileappender?
 
 
subject: log4j DailyRollingFileAppender question
 
Threads others viewed
Configuring Jboss log4j.xml file.
Need help with log4j logging tool to log into database
log4j: seperate logfiles for multiple threads.
How to create a log file for each program execution in jboss
How to suppress warnings thrown by log4j?
IntelliJ Java IDE

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture