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
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: 16061
    
  21

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Delete older log files automatically