Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Cesar Coz
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic