This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan 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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 15629
    
  15

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
 
Similar Threads
*NEWBIE* Ant compile attribute
Log4j configuration question
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