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

建议增加lumberjack组件,增加日志分割功能 #1210

Closed
whitekeyboard opened this issue May 18, 2021 · 3 comments
Closed

建议增加lumberjack组件,增加日志分割功能 #1210

whitekeyboard opened this issue May 18, 2021 · 3 comments
Labels
good first issue Good for newcomers

Comments

@whitekeyboard
Copy link

当前使用zap日志库,不支持日志分割,以及压缩功能,长时间运行服务,会导致日志无限增大。
查询、分析日志较为困难,建议增加lumberjack组件,增加日志分割功能,以及压缩等功能。
谢谢

@AlexStocks
Copy link
Contributor

a pr is welcome. thx.

@zouyx
Copy link
Member

zouyx commented May 20, 2021

zap 是默认的日志组件,你可以通过实现logger 接口自定义日志组件。

func SetLogger(log Logger) {

@AlexStocks AlexStocks reopened this May 28, 2021
@AlexStocks AlexStocks added the good first issue Good for newcomers label May 28, 2021
This was referenced Jul 5, 2021
@LaurenceLiZhixin
Copy link
Contributor

This is added in #1335

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

4 participants