diff options
Diffstat (limited to 'lib/common/Logging.cpp')
-rw-r--r-- | lib/common/Logging.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/common/Logging.cpp b/lib/common/Logging.cpp index dad96126..3e2062da 100644 --- a/lib/common/Logging.cpp +++ b/lib/common/Logging.cpp @@ -23,7 +23,7 @@ std::vector<Logger*> Logging::sLoggers; std::string Logging::sContext; Console Logging::sConsole; Syslog Logging::sSyslog; -Log::Level Logging::sGlobalLevel; +Log::Level Logging::sGlobalLevel = Log::EVERYTHING; void Logging::ToSyslog(bool enabled) { @@ -95,6 +95,11 @@ void Logging::Remove(Logger* pOldLogger) void Logging::Log(Log::Level level, const std::string& rFile, int line, const std::string& rMessage) { + if (level > sGlobalLevel) + { + return; + } + std::string newMessage; if (sContextSet) |