framework1/config/development/log.yaml

17 lines
387 B
YAML
Raw Normal View History

2024-10-20 22:56:46 +08:00
#driver: console
#formatter: text
#level: trace
#driver: single
#level: trace
#folder: /tmp/
#file: coredemo.log
2024-10-23 17:00:42 +08:00
driver: conselog # 切割日志
2024-10-20 22:56:46 +08:00
level: trace # 日志级别
file: coredemo.log # 保存的日志文件
rotate_count: 10 # 最多日志文件个数
rotate_size: 120000
rotate_time: "1m"
max_age: "10d" # 文件保存时间
date_format: "%Y-%m-%d-%H-%M" # 文件后缀格式