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 Open Source Projects and the fly likes [LOG4J] need to trigger log creation and rollover from code Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "[LOG4J] need to trigger log creation and rollover from code" Watch "[LOG4J] need to trigger log creation and rollover from code" New topic
Author

[LOG4J] need to trigger log creation and rollover from code

Cesar Coz
Ranch Hand

Joined: Aug 19, 2010
Posts: 31
Hello, I have this requirement where in every iteration to the data base I need to create a new log with a custom name (e.g. <date>T<time>_<Iterationid>.log). and keep them for a custom ammount of days (e.g. 3)

So my question is if there is an appender that can create a new log every iteration with a custom name and a max backup.

pd. I'm using Log4J 1.2.15


Cesar Coz.
 
wood burning stoves
 
subject: [LOG4J] need to trigger log creation and rollover from code