diff --git a/include/spdlog/logger.h b/include/spdlog/logger.h index a3c4a9fd..be05e463 100644 --- a/include/spdlog/logger.h +++ b/include/spdlog/logger.h @@ -63,15 +63,7 @@ public: template void warn(const T&); template void error(const T&); template void critical(const T&); - - template void log_if(const bool flag, level::level_enum lvl, const T&); - template void trace_if(const bool flag, const T&); - template void debug_if(const bool flag, const T&); - template void info_if(const bool flag, const T&); - template void warn_if(const bool flag, const T&); - template void error_if(const bool flag, const T&); - template void critical_if(const bool flag, const T&); - + bool should_log(level::level_enum) const; void set_level(level::level_enum); level::level_enum level() const;