-
Beta Was this translation helpful? Give feedback.
Answered by
tt4g
Jul 24, 2023
Replies: 2 comments
-
daily_file_sink rotates to the "specified time" when the "date changes". spdlog/include/spdlog/sinks/daily_file_sink.h Lines 26 to 39 in 2ee8bac |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
330305020
-
Thanks for your explanation. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
daily_file_sink rotates to the "specified time" when the "date changes".
And
spdlog::sinks::daily_filename_calculator
adds only the year, month, and day to the filename, so if it rotates to the same day, nothing will happen because the log will be written to the same file.spdlog/include/spdlog/sinks/daily_file_sink.h
Lines 26 to 39 in 2ee8bac