[Logo] Mango Community
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Error Logs  XML
Forum Index » How-To
Author Message
ftomiBR

Initiate

Joined: 12/07/2010 10:43:59
Messages: 53
Offline

I notice that errors logs can easily (few hours) reach more than 30Gb on HD when there is some wrong configuration.

I'm afraid about that, is there some way to handle the logs storage? I mean, purge them periodically?


Best Regards
Tommy
mlohbihler

Master
[Avatar]

Joined: 01/03/2007 22:48:52
Messages: 1847
Offline

Check your log4j.xml file. The "logfile" appender can be changed from a org.apache.log4j.DailyRollingFileAppender to a org.apache.log4j.RollingFileAppender and a "maxBackupIndex" set. See http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/RollingFileAppender.html

Best regards,
Matthew Lohbihler
ftomiBR

Initiate

Joined: 12/07/2010 10:43:59
Messages: 53
Offline

It works fine, also I commented out the "DatePattern" param since it's no longer used.

Thank you!

Best Regards
Tommy
 
Forum Index » How-To
Go to:   
Powered by JForum 2.1.9 © JForum Team