aspose file tools*
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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: 16019
    
  20

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