Replies: 1 comment
-
If you don't need to use a logger within the spdlog/include/spdlog/common.h Lines 328 to 339 in 27cb4c7 However, when used in a multi-threaded application, it is necessary to make sure that |
Beta Was this translation helpful? Give feedback.
-
I'm porting a legacy logging system to use
spdlog
. The legacy logger has aWRITE
macro that logs with no line annotations, i.e. the pattern should be "%v". I thought about having a separate logger + sink for this case, which can have its pattern set to"%v"
. But the system requires file logging, and requires thatWRITE
logging to go to the same file as all other logging. The loggers could share the same file sink, but then the patterns will also be the same.Other ideas:
Any better ideas?
Beta Was this translation helpful? Give feedback.
All reactions