Re: log4j
Re: log4j
- Subject: Re: log4j
- From: Ron X <email@hidden>
- Date: Thu, 24 May 2012 15:55:35 +0300
# Set root logger priority to INFO and its only appender to A1.
log4j.rootLogger = INFO, A1, COPY
# Appenders
log4j.appender.A1 = org.apache.log4j.ConsoleAppender
# A1 uses PatternLayout.
log4j.appender.A1.layout = er.extensions.logging.ERXPatternLayout
# This pattern will produce logs that look like:
# 2002-06-18 17:46:18,292 MyAppName[4002:9133 0] MyCategory (MyClass.java:40) - Some log
log4j.appender.A1.layout.ConversionPattern = %d{ISO8601} %-5p %W{n[i:p s]} %c{1} (%F:%L) %x - %m%n
# Note that %F and %L is fairly slow and shouldn't be used in performance intensive logging
log4j.appender.COPY = org.apache.log4j.FileAppender
log4j.appender.COPY.layout = er.extensions.logging.ERXPatternLayout
log4j.appender.COPY.layout.ConversionPattern = %d{ISO8601} %-5p %W{n[i:p s]} %c{1} (%F:%L) %x - %m%n
log4j.appender.COPY.append = true
log4j.appender.COPY.file = /tmp/copy.out
log4j.appender.COPY.MaxFileSize = 10MB
log4j.appender.COPY.MaxBackupIndex = 5
log4j.logger.com.ss.Song = COPY
and do NOT write to the /tmp/copy.out
2012/5/24 Lachlan Deck
<email@hidden>
log4j.appender.A2.append=true
_______________________________________________
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: | |
| >log4j (From: Ron X <email@hidden>) |
| >Re: log4j (From: Lachlan Deck <email@hidden>) |