Using java.util.logging, is it possible to restart logs after a certain period of time?

Posted by Fry on Stack Overflow See other posts from Stack Overflow or by Fry
Published on 2010-05-17T19:05:34Z Indexed on 2010/05/17 19:21 UTC
Read the original article Hit count: 295

Filed under:
|

I have some java code that will be running as an importer for data for a much larger project. The initial logging code was done with the java.util.logging classes, so I'd like to keep it if possible, but it seems to be a little inadequate now given he amount of data passing through the importer.

Often times in the system, the importer will get data that the main system doesn't have information for or doesn't match the system's data so it is ignored but a message is written to the log about what information was dropped and why it wasn't imported. The problem is that this tends to grow in size very quickly, so we'd like to be able to start a fresh log daily or weekly.

Does anybody have an idea if this can be done in the logging classes or would I have to switch to log4j or custom?

Thanks for any help!

© Stack Overflow or respective owner

Related posts about java

Related posts about logging