From cb939ce9b808fff5e10920e40fd9fcfe6c94f942 Mon Sep 17 00:00:00 2001 From: gabime Date: Sat, 7 Dec 2024 18:31:13 +0200 Subject: [PATCH] logger::sink_it_ no longer virtual --- include/spdlog/logger.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/spdlog/logger.h b/include/spdlog/logger.h index f8a79de2..b8b37ae0 100644 --- a/include/spdlog/logger.h +++ b/include/spdlog/logger.h @@ -18,9 +18,9 @@ #include #include -#include "./common.h" -#include "./details/log_msg.h" -#include "./sinks/sink.h" +#include "common.h" +#include "details/log_msg.h" +#include "sinks/sink.h" #define SPDLOG_LOGGER_CATCH(location) \ catch (const std::exception &ex) { \ @@ -191,7 +191,7 @@ protected: } // log the given message (if the given log level is high enough) - virtual void sink_it_(const details::log_msg &msg) { + void sink_it_(const details::log_msg &msg) { assert(should_log(msg.log_level)); for (auto &sink : sinks_) { if (sink->should_log(msg.log_level)) { @@ -206,7 +206,7 @@ protected: flush_(); } } - virtual void flush_(); + void flush_(); [[nodiscard]] bool should_flush_(const details::log_msg &msg) const; // handle errors during logging.