diff --git a/include/spdlog/details/line_logger.h b/include/spdlog/details/line_logger.h index 7160f6da..1dc0b911 100644 --- a/include/spdlog/details/line_logger.h +++ b/include/spdlog/details/line_logger.h @@ -85,6 +85,13 @@ public: } } + + void write(const char* what) + { + if (_enabled) + _log_msg.raw << what; + } + template line_logger& operator<<(const T& what) {