forked from swuos/openswu-webapi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
log4j.properties
24 lines (24 loc) · 1.14 KB
/
log4j.properties
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
### set log levels ###
### 只启用了Debug,info,error级别的日志。某级别的日志会输出到相应级别的日志文件中,不会判断优先级。
log4j.rootLogger=DEBUG , D , I , E
### DEBUG ###
log4j.appender.D=cn.swu.edu.opensource.openswu_webapi_jersey.utils.NFileAppender
log4j.appender.D.File=logs/debug.log
log4j.appender.D.Append=true
log4j.appender.D.Threshold=DEBUG
log4j.appender.D.layout=org.apache.log4j.PatternLayout
log4j.appender.D.layout.ConversionPattern=%-d{yyyy-MM-dd HH:mm:ss} [ %t ] - [ %l ] %m%n
### INFO ###
log4j.appender.I=cn.swu.edu.opensource.openswu_webapi_jersey.utils.NFileAppender
log4j.appender.I.File=logs/info.log
log4j.appender.I.Append=true
log4j.appender.I.Threshold=INFO
log4j.appender.I.layout=org.apache.log4j.PatternLayout
log4j.appender.I.layout.ConversionPattern=%-d{yyyy-MM-dd HH:mm:ss} [ %l ] %m%n
### ERROR ###
log4j.appender.E=cn.swu.edu.opensource.openswu_webapi_jersey.utils.NFileAppender
log4j.appender.E.File=logs/error.log
log4j.appender.E.Append=true
log4j.appender.E.Threshold=ERROR
log4j.appender.E.layout=org.apache.log4j.PatternLayout
log4j.appender.E.layout.ConversionPattern=%-d{yyyy-MM-dd HH:mm:ss} [ %t ] - [ %l ] %m%n