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

归档后,还是会往归档文件中持续写入日志 #44

Open
xwj-vic opened this issue Aug 31, 2022 · 6 comments
Open

归档后,还是会往归档文件中持续写入日志 #44

xwj-vic opened this issue Aug 31, 2022 · 6 comments
Assignees

Comments

@xwj-vic
Copy link

xwj-vic commented Aug 31, 2022

归档后,还是会往归档文件中持续写入日志

@arthurkiller
Copy link
Owner

归档后,还是会往归档文件中持续写入日志

could you please add more information about this issue

@xwj-vic
Copy link
Author

xwj-vic commented Aug 31, 2022

更新了最新的tag:1.1.3,日志配置整点切割归档,但是新产生的日志还会往最新的归档文件里写

@xwj-vic
Copy link
Author

xwj-vic commented Sep 6, 2022

image

并发分片时,rename方法会失败,从而导致日志会打到错误的归档文件中

@arthurkiller

@arthurkiller
Copy link
Owner

arthurkiller commented Sep 6, 2022

你的意思是多个进程写同一个日志文件是么?还是说多个 goroutine?

@arthurkiller
Copy link
Owner

或者可以提供一个可以复现的代码片段也行,我试下

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

No branches or pull requests

2 participants