This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Delete older log files automatically Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Delete older log files automatically" Watch "Delete older log files automatically" New topic
Author

Delete older log files automatically

Ramachandran Sreejith
Greenhorn

Joined: Aug 09, 2008
Posts: 9
Hi,

How can we configure the property file(log4j) to delete older log files automatically?

Thanks in advance.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16901
    
  26

Ramachandran Sreejith wrote:Hi,

How can we configure the property file(log4j) to delete older log files automatically?

Thanks in advance.


Use a rotating logger. For more info, check out our Other Open Source Projects forum, where wisdom is dispensed about Log4j.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Delete older log files automatically
 
jQuery in Action, 3rd edition