-
I don't know why this has become so difficult for me to look up. I have a core logger and a client logger. All I'm trying to do is change the color of the text for one of the levels. Debug in this case. Any help would be appreciated. I feel like color options/example snippets use to be on the front page? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Please see https://github.com/gabime/spdlog/wiki/0.-FAQ#colors-do-not-appear-when-using-custom-format |
Beta Was this translation helpful? Give feedback.
-
The color is determined automatically by spdlog according to the log level. |
Beta Was this translation helpful? Give feedback.
The color is determined automatically by spdlog according to the log level.
To change the mapping of levels to colors use
void set_color(level::level_enum level, std::uint16_t color))
spdlog/include/spdlog/sinks/wincolor_sink.h
Line 34 in 0ca574a