浏览代码

Fix duplicate logging.

Luke Taylor 16 年之前
父节点
当前提交
681f1ee00c
共有 1 个文件被更改,包括 3 次插入5 次删除
  1. 3 5
      samples/ldap/src/main/webapp/WEB-INF/classes/log4j.properties

+ 3 - 5
samples/ldap/src/main/webapp/WEB-INF/classes/log4j.properties

@@ -1,7 +1,7 @@
 # Global logging configuration
 log4j.rootLogger=INFO, stdout, fileout
 
-log4j.logger.org.springframework.security=DEBUG, stdout, fileout
+log4j.logger.org.springframework.security=DEBUG
 
 # Console output...
 log4j.appender.stdout=org.apache.log4j.ConsoleAppender
@@ -9,11 +9,9 @@ log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
 log4j.appender.stdout.layout.conversionPattern=[%p,%c{1},%t] %m%n
 
 # Rolling log file output...
-log4j.appender.fileout=org.apache.log4j.RollingFileAppender
+log4j.appender.fileout=org.apache.log4j.FileAppender
 log4j.appender.fileout.File=spring-security-ldap.log
-#log4j.appender.fileout.File=${webapp.root}/WEB-INF/log4j.log
-log4j.appender.fileout.MaxFileSize=1024KB
-log4j.appender.fileout.MaxBackupIndex=1
+log4j.appender.fileout.Append=false
 log4j.appender.fileout.layout=org.apache.log4j.PatternLayout
 log4j.appender.fileout.layout.conversionPattern=%d{ABSOLUTE} %5p %c{1},%t:%L - %m%n