|
@ -9,7 +9,7 @@ log4j.appender.stdout.layout.ConversionPattern = [%-5p] %d{yyyy-MM-dd HH:mm:ss,S
|
9
|
9
|
|
10
|
10
|
### \u8F93\u51FADEBUG \u7EA7\u522B\u4EE5\u4E0A\u7684\u65E5\u5FD7\u5230=E://logs/log.log ###
|
11
|
11
|
log4j.appender.D = org.apache.log4j.DailyRollingFileAppender
|
12
|
|
log4j.appender.D.File = /home/tomcat/apache-tomcat-7.0.73/webapps/log.log
|
|
12
|
log4j.appender.D.File = /home/tomcat/apache-tomcat-7.0.73/webapps/logs/log.log
|
13
|
13
|
log4j.appender.D.Append = true
|
14
|
14
|
log4j.appender.D.Threshold = DEBUG
|
15
|
15
|
log4j.appender.D.layout = org.apache.log4j.PatternLayout
|
|
@ -17,7 +17,7 @@ log4j.appender.D.layout.ConversionPattern = %-d{yyyy-MM-dd HH:mm:ss} [ %t:%r ]
|
17
|
17
|
|
18
|
18
|
### \u8F93\u51FAERROR \u7EA7\u522B\u4EE5\u4E0A\u7684\u65E5\u5FD7\u5230=E://logs/error.log ###
|
19
|
19
|
log4j.appender.E = org.apache.log4j.DailyRollingFileAppender
|
20
|
|
log4j.appender.E.File =/home/tomcat/apache-tomcat-7.0.73/webapps/error.log
|
|
20
|
log4j.appender.E.File =/home/tomcat/apache-tomcat-7.0.73/webapps/logs/error.log
|
21
|
21
|
log4j.appender.E.Append = true
|
22
|
22
|
log4j.appender.E.Threshold = ERROR
|
23
|
23
|
log4j.appender.E.layout = org.apache.log4j.PatternLayout
|