From 51f69dfcca1d7ba8d81a1fdbb4b0e1d9dcf7e24e Mon Sep 17 00:00:00 2001 From: nick Date: Tue, 2 Jun 2015 13:01:24 -0700 Subject: [PATCH] Expose line_logger enabled state to support custom operator<<'s --- include/spdlog/details/line_logger.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/spdlog/details/line_logger.h b/include/spdlog/details/line_logger.h index 3a946cb6..da121c11 100644 --- a/include/spdlog/details/line_logger.h +++ b/include/spdlog/details/line_logger.h @@ -206,6 +206,11 @@ public: _enabled = false; } + bool is_enabled() + { + return _enabled; + } + private: logger* _callback_logger;