解决启动后tomcat控制台输入大量DEBUG日志,logback

This commit is contained in:
keyuan 2021-04-21 14:40:19 +08:00
parent 8268c16266
commit 166e54eda8
2 changed files with 7 additions and 20 deletions

16
pom.xml
View File

@ -197,18 +197,6 @@
</dependency>
<dependency>
<groupId>com.baidubce</groupId>
<artifactId>bce-java-sdk</artifactId>
<version>0.10.5</version>
</dependency>
<dependency>
<groupId>com.aliyun.oss</groupId>
<artifactId>aliyun-sdk-oss</artifactId>
<version>2.0.3</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.xhtmlrenderer/core-renderer -->
<dependency>
<groupId>org.xhtmlrenderer</groupId>
@ -548,8 +536,8 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>7</source>
<target>7</target>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
<plugin>

View File

@ -1,6 +1,5 @@
# Output pattern : date [thread] priority category - message
log4j.rootLogger=INFO, Console, RollingFile
##Appenders##
#Console Appender
@ -11,15 +10,15 @@ log4j.appender.Console.layout.ConversionPattern=%d [%t] %-5p %-40.40c -%m%n
#RollingFile Appender(Store application message, hourly rolling, threshold is INFO)
log4j.appender.RollingFile=org.apache.log4j.DailyRollingFileAppender
log4j.appender.RollingFile.File=/Users/keyuan/Documents/Work/temp/logs/diaowen.log
log4j.appender.RollingFile.File=${catalina.base}/temp/logs/diaowen.log
log4j.appender.RollingFile.Threshold=INFO
log4j.appender.RollingFile.File.DatePattern=.yyyy-MM-dd-HH
log4j.appender.RollingFile.layout=org.apache.log4j.PatternLayout
log4j.appender.RollingFile.layout.ConversionPattern=%d [%t] %-5p %-40.40c -%m%n
#TraceFile Appender (Store debug message, rolling with 10M, 5 files, threshold is DEBUG)
#TraceFile Appender (Store debug message, rolling with 10M, 5 files, threshold is DEBUG)
log4j.appender.TraceFile=org.apache.log4j.RollingFileAppender
log4j.appender.TraceFile.File=/Users/keyuan/Documents/Work/temp/logs/diaowen_trace.log
log4j.appender.TraceFile.File=${catalina.base}/temp/logs/diaowen_trace.log
log4j.appender.TraceFile.Threshold=OFF
log4j.appender.TraceFile.MaxBackupIndex=5
log4j.appender.TraceFile.layout=org.apache.log4j.PatternLayout
@ -32,8 +31,8 @@ log4j.logger.com=INFO,TraceFile
log4j.logger.org=INFO,TraceFile
#Forbidden struts2 ClassFinder message
#Forbidden struts2 ClassFinder message
log4j.logger.com.opensymphony.xwork2.util.finder.ClassFinder=OFF
#log4jdbc
log4j.logger.jdbc.sqltiming=INFO
log4j.logger.jdbc.sqltiming=INFO