Log file for each individual process #2952
Answered
by
tt4g
VishalGujela
asked this question in
Q&A
-
Hi, |
Beta Was this translation helpful? Give feedback.
Answered by
tt4g
Dec 5, 2023
Replies: 1 comment
-
You can create a logger with multiple sinks. Since spdlog does not support writing to a single file from multiple processes, you should avoid file name conflicts for each process. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
VishalGujela
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can create a logger with multiple sinks.
See: https://github.com/gabime/spdlog/wiki/2.-Creating-loggers#creating-loggers-with-multiple-sinks
Since spdlog does not support writing to a single file from multiple processes, you should avoid file name conflicts for each process.