• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Server not longer reachable because of 211GB logfile
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Server not longer reachable because of 211GB logfile


  • Subject: Re: Server not longer reachable because of 211GB logfile
  • From: Ted Archibald <email@hidden>
  • Date: Sun, 17 Jun 2012 09:26:41 -0600


By the way, is there a way to detect the size of a textfile (logfile) and have a process send me a message that something goes wrong,
when the file reaches a certain size?

I don't know if log4j can email you based on the size of the log (google?) but I beleive you can limit the size of a log with a the property MaxFileSize.

e.g. :

# A2 is a DailyRollingFileAppender
log4j.appender.A2=org.apache.log4j.DailyRollingFileAppender
log4j.appender.A2.file=/var/log/webobjects_apps/@@build.app.bundle.name@@-@@WOPort@@.log
log4j.appender.A2.datePattern='.'yyyy-MM-dd
log4j.appender.A2.append=true
log4j.appender.A2.layout=er.extensions.ERXPatternLayout
log4j.appender.A2.layout.ConversionPattern=%-5p %d{ISO8601} [%t] (%c: %L) - %m%n

log4j.appender.A2.MaxFileSize=10MB 
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Server not longer reachable because of 211GB logfile (From: ute Hoffmann <email@hidden>)

  • Prev by Date: Server not longer reachable because of 211GB logfile
  • Next by Date: Re: Webobjects-dev Digest, Vol 9, Issue 517
  • Previous by thread: Server not longer reachable because of 211GB logfile
  • Next by thread: Re: Server not longer reachable because of 211GB logfile
  • Index(es):
    • Date
    • Thread