logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 17498] - Logging inconsistencies using DailyRollingFileAppender
Date Fri, 25 Aug 2006 15:17:42 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=17498>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=17498





------- Additional Comments From jborn@harland.net  2006-08-25 15:17 -------
I am also running into this problem on a Solaris 8 box.  We are using version
1.2.12 of log4j.

The log4j properties we are using are as follows:
# Configure the name of the logout for the rolling appender
log4j.appender.rolling.File=/dir/webapp.log
log4j.appender.rolling.layout.ConversionPattern=%d [%t] - %p %c - %m%n
# Configure the Layout pattern and conversion pattern for the rolling appender
log4j.appender.rolling.layout=org.apache.log4j.PatternLayout
# Configure the rolling appender to be a RollingFileAppender
log4j.appender.rolling=org.apache.log4j.DailyRollingFileAppender
log4j.appender.rolling.DatePattern='.'yyyy-MM-dd
#  Configure the stdout appender to use the PatternLayout
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
# Pattern to output the caller's file name and line number.
log4j.appender.stdout.layout.ConversionPattern=%5p [%t] (%F:%L) - %m%n
# Configure the stdout appender to go to the Console
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
# Create two appenders, one called stdout and the other called rolling
log4j.rootLogger=DEBUG, rolling
# Set the logger level for everything under "org.apache" to WARN
log4j.logger.org.apache=WARN
# Set the logger level for "org.apache.commons.validator.ValidatorUtil" to
# FATAL because we know that errors will be generated here that we want to
# ignore (due to the fact that it is unknown whether a consumer is personal
# or business and the validation.xml file is not set up to accomodate the
# differences)
log4j.logger.org.apache.commons.validator.ValidatorUtil=FATAL
log4j.logger.com.harland.collective.config.ApplicationConfig=WARN
log4j.logger.com.harland.choice.web.tags.CustomLink=WARN
log4j.logger.com.harland.choice.web.tags.html.HarlandLinkTag=WARN
log4j.logger.com.harland.choice.web.filters.PrivacyPolicyFilter=WARN
log4j.logger.com.harland.choice.web.util.resources.ChoiceMessageResources=WARN


The webapp is running under iPlanet and no other applications use this log4j.
Only one JVM.

This behaviour is clobbering the rolled file on us, so seems quite critical in
nature because we are losing yesterdays logs.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


Mime
View raw message