Skip to content

Log file for each individual process #2952

Answered by tt4g
VishalGujela asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by VishalGujela
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants