diff --git a/include/spdlog/sinks/ansicolor_sink.h b/include/spdlog/sinks/ansicolor_sink.h index 7c5e3539..1cb797ba 100644 --- a/include/spdlog/sinks/ansicolor_sink.h +++ b/include/spdlog/sinks/ansicolor_sink.h @@ -133,6 +133,11 @@ public: formatter_ = std::move(sink_formatter); } + bool should_color() + { + return should_do_colors_; + } + private: void print_ccode_(const std::string &color_code) {