Skip to content

Commit

Permalink
调整代码
Browse files Browse the repository at this point in the history
  • Loading branch information
陈壁浩 committed Jul 21, 2024
1 parent fae2fb7 commit 05f6864
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions config/dev/log.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,27 +24,27 @@ level: trace
#################### 改造成: https://blog.csdn.net/xmcy001122/article/details/119916227

# 启用的日志通道
enable: console,single

console:
level: trace
formatter: text

single:
level: trace
folder: ./storage/log/
file: gob_single.log

rotate:
level: trace # 日志级别
folder: ./storage/log/
file: gob_rotate.log # 保存的日志文件
rotate_count: 10 # 最多日志文件个数
rotate_size: 120000 # 每个日志大小
rotate_time: "1m" # 切割时间
max_age: "10d" # 文件保存时间
date_format: "%Y-%m-%d-%H-%M" # 文件后缀格式

aliyun_sls:
level: trace
formatter: json
#enable: console,single
#
#console:
# level: trace
# formatter: text
#
#single:
# level: trace
# folder: ./storage/log/
# file: gob_single.log
#
#rotate:
# level: trace # 日志级别
# folder: ./storage/log/
# file: gob_rotate.log # 保存的日志文件
# rotate_count: 10 # 最多日志文件个数
# rotate_size: 120000 # 每个日志大小
# rotate_time: "1m" # 切割时间
# max_age: "10d" # 文件保存时间
# date_format: "%Y-%m-%d-%H-%M" # 文件后缀格式
#
#aliyun_sls:
# level: trace
# formatter: json

0 comments on commit 05f6864

Please sign in to comment.