-
I'm a little confused with this:
fileName.txt content is:
I supposed format pattern setting in one logger should not change one in other, even if loggers share the same sink. |
Beta Was this translation helpful? Give feedback.
Answered by
tt4g
Apr 3, 2021
Replies: 1 comment 1 reply
-
The formatter is an attribute of the sink, not the logger.
spdlog/include/spdlog/logger-inl.h Lines 82 to 105 in 100f300 |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
amirych
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The formatter is an attribute of the sink, not the logger.
spdlog::logger::set_pattern
is a short hand to set the formatter for each sink in the logger.spdlog/include/spdlog/logger-inl.h
Lines 82 to 105 in 100f300