This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Other Open Source Projects and the fly likes Log4j configuration question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Log4j configuration question" Watch "Log4j configuration question" New topic

Log4j configuration question

Thomas Vezhambassery

Joined: Mar 28, 2006
Posts: 2
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..

Christophe Verré

Joined: Nov 24, 2005
Posts: 14688

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)

[My Blog]
All roads lead to JavaRanch
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63211

Moved to the Other Open Source Forum.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Log4j configuration question
It's not a secret anymore!