mirror of
https://github.com/gabime/spdlog.git
synced 2025-01-13 01:10:26 +08:00
Merge pull request #1022 from floouuu/v1.x
Expose should_do_colors_ in ansicolor_sink.h
This commit is contained in:
commit
e2805ac68a
@ -133,6 +133,11 @@ public:
|
|||||||
formatter_ = std::move(sink_formatter);
|
formatter_ = std::move(sink_formatter);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool should_color()
|
||||||
|
{
|
||||||
|
return should_do_colors_;
|
||||||
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void print_ccode_(const std::string &color_code)
|
void print_ccode_(const std::string &color_code)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user