-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
daily_file_sink_mt, no logger in new file when new day come. #1956
Comments
additional, and i found code is blocked at
|
Is that mean, sink lock twice ? :
|
At same time,the rotate rule is strange. It seem that
|
I don't think your paste code is not spdlog v1.8.3 because deadlock problem already fixed #1571. spdlog/include/spdlog/sinks/daily_file_sink.h Lines 169 to 177 in 53e1c9a
And you can replace the behavior because
|
Another way. In spdlog v1.8.3 and after, you can use |
I wasn't aware of this, but a feature added in merge request #1847 allows you to use different file names for the same date. |
Version: 1.8.3
My setting code is below:
I use
spdlog::xxx
to print logger to daily file in multi thread,but:The text was updated successfully, but these errors were encountered: