mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-15 16:35:45 +08:00
use set_color_mode_ in ctor
This commit is contained in:
parent
01643a5e6d
commit
6e0331c089
@ -17,7 +17,7 @@ template <typename Mutex>
|
||||
SPDLOG_INLINE ansicolor_sink<Mutex>::ansicolor_sink(FILE *target_file, color_mode mode)
|
||||
: target_file_(target_file)
|
||||
{
|
||||
set_color_mode(mode);
|
||||
set_color_mode_(mode);
|
||||
colors_.at(level::trace) = to_string_(white);
|
||||
colors_.at(level::debug) = to_string_(cyan);
|
||||
colors_.at(level::info) = to_string_(green);
|
||||
|
Loading…
Reference in New Issue
Block a user