Using Daily files, Rotating files with async at the same time #2776
Replies: 2 comments
-
my solution for now is to manully assign the filename of the log:
Please note that this may cause various issues or slow down the entire process, a better solution should be create your own sink: https://github.com/gabime/spdlog/wiki/4.-Sinks#implementing-your-own-sink |
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
-
Hi, I am new to spdlog. I saw that we can use spdlog with daily_file_sink or rotating_file_sink to customize the output.
I am wondering if we can us the daily_file_sink with rotating_file_sink in mutithread(async) condition, which means the logger will create a file everyday, with a size limit, when it reach the size limit, it will create a new file, like a rotating fille logger.
Is there any way to realize that?
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions