mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-16 00:45:48 +08:00
Exposed should_do_colors_ in ansicolor_sink.h. [#1004]
This commit is contained in:
parent
bdfc7d2a5a
commit
63cfb7db25
@ -133,6 +133,11 @@ public:
|
|||||||
formatter_ = std::move(sink_formatter);
|
formatter_ = std::move(sink_formatter);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool colors_enabled()
|
||||||
|
{
|
||||||
|
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