mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-25 18:11:33 +08:00
Update wincolor_sink-inl.h
minor formatting
This commit is contained in:
parent
4578b0ad11
commit
c817254495
@ -68,9 +68,8 @@ void SPDLOG_INLINE wincolor_sink<ConsoleMutex>::log(const details::log_msg &msg)
|
|||||||
// in color range
|
// in color range
|
||||||
auto orig_attribs = set_console_attribs(colors_[msg.level]);
|
auto orig_attribs = set_console_attribs(colors_[msg.level]);
|
||||||
print_range_(formatted, msg.color_range_start, msg.color_range_end);
|
print_range_(formatted, msg.color_range_start, msg.color_range_end);
|
||||||
::SetConsoleTextAttribute(out_handle_,
|
// reset to orig colors
|
||||||
orig_attribs); // reset to orig colors
|
::SetConsoleTextAttribute(out_handle_, orig_attribs);
|
||||||
// after color range
|
|
||||||
print_range_(formatted, msg.color_range_end, formatted.size());
|
print_range_(formatted, msg.color_range_end, formatted.size());
|
||||||
}
|
}
|
||||||
else // print without colors if color range is invalid (or color is disabled)
|
else // print without colors if color range is invalid (or color is disabled)
|
||||||
|
Loading…
Reference in New Issue
Block a user