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 Building Microservices this week in the Design 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: 32
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.
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: [LOG4J] need to trigger log creation and rollover from code
 
jQuery in Action, 3rd edition