Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update: zap 日志切割优化 #1551

Merged
merged 1 commit into from
Sep 24, 2023
Merged

update: zap 日志切割优化 #1551

merged 1 commit into from
Sep 24, 2023

Conversation

SliverHorn
Copy link
Member

  • 去掉 github.com/lestrrat-go/file-rotatelogs 库的依赖
  • 实现zap.String(…"business", "xx")自定义业务日志数据路径, 输出文件路径为./global.GVA_CONFIG.Zap.Director/2006-01-02/xx/level(debug, info, warn, error, dpanic, panic, fatal).log

…"business", "xx")自定义业务日志数据路径, 输出文件路径为./global.GVA_CONFIG.Zap.Director/2006-01-02/xx/level(debug, info, warn, error, dpanic, panic, fatal).log
@piexlmax piexlmax merged commit 2cb0669 into flipped-aurora:main Sep 24, 2023
8 checks passed
songzhibin97 pushed a commit that referenced this pull request Oct 11, 2023
…"business", "xx")自定义业务日志数据路径, 输出文件路径为./global.GVA_CONFIG.Zap.Director/2006-01-02/xx/level(debug, info, warn, error, dpanic, panic, fatal).log (#1551)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant