-
We have a library which uses spdlog. Inside the library, we only have a single logger writing to the file. Now there can be multiple instances of our library loaded into the memory by the application, all of them would be writing logs to the same file. How to program it?
This is the error getting output from the other instance which is not writing the logs:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This error message reports that the thread pool used by the async logger has been deleted. spdlog/include/spdlog/async_logger-inl.h Lines 33 to 49 in 2169a6f And writing to a single file from multiple processes is not safe: #937, #2951, #2633 |
Beta Was this translation helpful? Give feedback.
This error message reports that the thread pool used by the async logger has been deleted.
Please redesign your application so that the thread pool is not deleted.
spdlog/include/spdlog/async_logger-inl.h
Lines 33 to 49 in 2169a6f