logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Johan Martinez <jmart...@gmail.com>
Subject catalina.out flooded
Date Thu, 29 Jul 2010 01:41:18 GMT
A webapp is flooding tomcat's catalina.out file and I would like to verify
if there is something wrong with my log4j configuration. Below is the
configuration I have in WEB-INF/classes/log4j.properties of the webapp. Any
suggestions or thoughts on what might be wrong with it??  I suspect logs are
getting duplicated in catalina.out and following log4j-defined files, but I
am not 100% sure on this (difficult to verify due to large file sizes).

Thanks,
jM.

<log4j>
# Set root category priority to WARN and its only appender to A1.

log4j.rootCategory=ERROR, A1

# A1 is set to be a ConsoleAppender.

log4j.appender.A1=org.apache.log4j.ConsoleAppender

# A1 uses PatternLayout.
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout.ConversionPattern=%d{ABSOLUTE} %-5p %c{2}
[%t,%M:%L] %m%n

# Display any warnings generated by our code
log4j.category.org.ca=INFO

# ApacheLogs Appender
log4j.appender.ApacheLogs=org.apache.log4j.DailyRollingFileAppender
log4j.appender.ApacheLogs.File=${catalina.home}/logs/apache.log
log4j.appender.ApacheLogs.Append=true
log4j.appender.ApacheLogs.layout=org.apache.log4j.PatternLayout
log4j.appender.ApacheLogs.DatePattern='.'-yyyy-MM-DD
log4j.appender.ApacheLogs.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}%L
%m%n

# GlobusLogs Appender
log4j.appender.GlobusLogs=org.apache.log4j.DailyRollingFileAppender
log4j.appender.GlobusLogs.File=${catalina.home}/logs/wsrf.log
log4j.appender.GlobusLogs.Append=true
log4j.appender.GlobusLogs.layout=org.apache.log4j.PatternLayout
log4j.appender.GlobusLogs.DatePattern='.'-yyyy-MM-DD
log4j.appender.GlobusLogs.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}%L
%m%n

# Define loggers
log4j.logger.org.apache=info,ApacheLogs
log4j.logger.org.apache.axis=debug,ApacheLogs

log4j.category.org.globus=INFO,GlobusLogs
log4j.logger.org.globus.wsrf.handlers.MessageLoggingHandler=DEBUG,GlobusLogs

</log4j>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message