From bcf0c8726af13ac6908b966dc37f56531a27e631 Mon Sep 17 00:00:00 2001 From: Alexey Rybalchenko Date: Mon, 6 Jul 2020 12:29:29 +0200 Subject: [PATCH] Move Logging() to header --- logger/Logger.cxx | 7 ------- logger/Logger.h | 7 ++++++- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/logger/Logger.cxx b/logger/Logger.cxx index 72ed1ae..e26a254 100644 --- a/logger/Logger.cxx +++ b/logger/Logger.cxx @@ -440,13 +440,6 @@ void Logger::UpdateMinSeverity() } } -bool Logger::Logging(Severity severity) -{ - return (severity >= fMinSeverity && - fMinSeverity > Severity::nolog) || - severity == Severity::fatal; -} - bool Logger::Logging(const string& severityStr) { if (fSeverityMap.count(severityStr)) { diff --git a/logger/Logger.h b/logger/Logger.h index c4470fc..c6e2908 100644 --- a/logger/Logger.h +++ b/logger/Logger.h @@ -255,7 +255,12 @@ class Logger static void CycleVerbosityUp(); static void CycleVerbosityDown(); - static bool Logging(const Severity severity); + static bool Logging(const Severity severity) + { + return (severity >= fMinSeverity && + fMinSeverity > Severity::nolog) || + severity == Severity::fatal; + } static bool Logging(const std::string& severityStr); static void SetVerbosity(const Verbosity verbosity);