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

关于kitex服务每天生成一个日志文件的需求 #895

Closed
damon008 opened this issue Apr 11, 2023 · 2 comments
Closed

关于kitex服务每天生成一个日志文件的需求 #895

damon008 opened this issue Apr 11, 2023 · 2 comments

Comments

@damon008
Copy link

我们希望kitex增强日志组件,希望可以启动服务后,在服务运行期间,每天生成一个日志的日期文件,这样便于查看

@rogerogers
Copy link

这个属于一个额外的功能点,不属于日志核心功能,建议配合其他库实现 比如 lumberjack,或者linux系统的logrotate
参考
https://github.com/uber-go/zap/blob/master/FAQ.md#does-zap-support-log-rotation

@li-jin-gou
Copy link
Member

可以参考 hlog 的 example 用法类似,https://github.com/cloudwego/hertz-examples/blob/main/hlog/logrus/main.go#L67

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants