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 configuration question

 
Thomas Vezhambassery
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
How I can configure new log file for every day and rolling 90 days log.
Means the logging system should automatically delete log files that is 91 days old..

Regards,
Thomas
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could try using a DailyRollingFileAppender to make every day logs.
But to delete old ones after 90 days, you'll need something else...
I don't know if you can configure log4j do it.

(this is the Servlet forum)
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64629
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moved to the Other Open Source Forum.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic