wood burning stoves 2.0*
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: 15952
    
  19

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
 
Similar Threads
Null pointer exception probably due to synchronisation issues; problem in starting activity
How to delete files in a directory older than n days
Delete Files Older than 'n' days
Log4j configuration question
*NEWBIE* Ant compile attribute