部署在Weblogic中的Web应用程序正在使用SLF4J和Log4j进行日志记录,但是所有日志记录最终都存储在STDERR中,没有任何可能的原因。
这是log4j配置:
log4j.rootCategory = WARN,fileA
log4j.appender.fileA = org.apache.log4j.RollingFileAppender
log4j.appender.fileA.file = /opt/logs/exp_application_log4j.log
log4j.appender.fileA.layout = org.apache.log4j.PatternLayout
log4j.appender.fileA.Threshold = WARN
log4j.appender.fileA.layout.ConversionPattern = %t %d %-5p | (%c:%L) - %m%n
log4j.appender.fileA.MaxFileSize = 10MB
log4j.appender.fileA.MaxBackupIndex = 5
log4j.category.com.pams = WARN
log4j.category.de = WARN
log4j.category.com = WARN
log4j.category.com.gti.cache = WARN
log4j.category.com.cs.pu = ERROR
log4j.category.com.cs.common = FATAL
log4j.category.com.cs = WARN
log4j.category.com.ino.dp = WARN
log4j.category.org.apache.fop = ERROR