1 Star 0 Fork 0

Take To / auto-logging

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
example.yml 1.71 KB
一键复制 编辑 原始数据 按行查看 历史
Take To 提交于 2023-12-27 14:40 . Update: rename
logging:
template: "%timestamp%%level%%label%%module%%message%%metadata%"
formats:
timestamp: "YYYY.MM.DD-HH:mm:ss.SSS ZZ"
label: auto-logging
json: false
pad: true
align: false
attributeformat:
level: " %attribute%"
label: " [%attribute%]"
module: " [%attribute%] "
metadata: " (%attribute%)"
colorize:
all: true
colors:
info: green
error: red
warn: yellow
debug: grey
targets:
console:
target: console
enabled: true
options:
level: info
file:
target: file
enabled: true
options:
level: warn
filename: "logging.log"
rotatingInfo:
target: daily-rotate-file
enabled: true
options:
level: info
datePattern: "YYYY-MM-DD"
zippedArchive: true
filename: "logs/%DATE%/info.log"
options:
flags: a
mode: 0666
rotatingDebug:
target: daily-rotate-file
enabled: true
options:
level: debug
datePattern: "YYYY-MM-DD"
zippedArchive: true
filename: "logs/%DATE%/debug.log"
options:
flags: a
mode: 0666
rotatingWarn:
target: daily-rotate-file
enabled: true
options:
level: warn
datePattern: "YYYY-MM-DD"
zippedArchive: true
filename: "logs/%DATE%/warn.log"
options:
flags: a
mode: 0666
rotatingError:
target: daily-rotate-file
enabled: true
options:
level: error
datePattern: "YYYY-MM-DD"
zippedArchive: true
filename: "logs/%DATE%/error.log"
options:
flags: a
mode: 0666
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
NodeJS
1
https://gitee.com/take-to/auto-logging.git
git@gitee.com:take-to/auto-logging.git
take-to
auto-logging
auto-logging
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891