Log4J : Setting time interval on log files and how to detect if it's a new log file?

Before I create my own logging system I wanted to confirm if it was possible to :

1. Set the time interval that a Log4J logs eg: 24 hours
2. How do you determine when a new log file has started (as I would need to reset my counters for the new log file.

Who is Participating?
For the second question I think that you have to Override rollOver() method and everything shoud be OK, but you have to try this!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.