Logging in a Deployed environment.
Logging in a Deployed environment.
- Subject: Logging in a Deployed environment.
- From: Greg <email@hidden>
- Date: Fri, 22 Apr 2005 10:04:31 +1000
Hi,
I have in my application the logging setup below. With the
DailyRollingFileAppender, all instances write to the same log file. I
would like to know if it is possible somehow to have the instance
number in the file name, like how the default logging works, so it
would be ShoeBox-1, ShoeBox-2, etc. Is this possible at all?
Regards,
Greg
log4j.rootLogger = DEBUG, A1, A2
# Appenders
log4j.appender.A1 = org.apache.log4j.ConsoleAppender
log4j.appender.A2 = org.apache.log4j.DailyRollingFileAppender
log4j.appender.A2.File = /var/log/ShoeBox/ShoeBox.log
log4j.appender.A2.MaxFileSize = 10MB
log4j.appender.A2.MaxBackupIndex = 1
# A1, A2 uses PatternLayout.
log4j.appender.A1.layout = er.extensions.ERXPatternLayout
log4j.appender.A2.layout = er.extensions.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
log4j.appender.A2.layout.ConversionPattern = %d{ISO8601} %-5p %W{n[i:p
s]} %c{1} (%F:%L) %x - %m%n
_______________________________________________
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