提交 61eacb1f 编写于 作者: 偏锋书生's avatar 偏锋书生

日志处理

上级 decf1f97
......@@ -4,3 +4,4 @@
/.project
/build/
/bak/
/duckula.log
......@@ -6,12 +6,27 @@ configuration:
name: STDOUT
patternLayout:
Pattern: "%d{DEFAULT} [%-22thread] %-5level %60.60logger %msg%n"
RollingFile: # 输出到文件,按照日期输出
- name: ROLLING_FILE
ignoreExceptions: false
fileName: "duckula.log"
filePattern: "duckula-%d{yyyy-MM-dd}.log"
append: true
PatternLayout:
pattern: "%d{yyyy-MM-dd HH:mm:ss,SSS}:%5p %20t [%50F:%3L] - %m%n"
Policies:
TimeBasedTriggeringPolicy:
modulate: true
interval: 1
DefaultRolloverStrategy:
max: 100
loggers:
root:
level: info
appenderRef:
ref: STDOUT
- ref: STDOUT
# - ref: ROLLING_FILE
logger:
# Outputs a list of pages, components and mixins at startup.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册