Core/Log: Reload log levels and filters
on 'reload config' command
This commit is contained in:
1 parent
7a9cb4fdc7
commit
bac261b001
3 files changed
+13
No files matched your search
@@ -187,6 +187,15 @@ void Log::Initialize()
|
||||
}
|
||||
}
|
||||
|
||||
void Log::ReloadConfig()
|
||||
{
|
||||
m_logLevel = sConfig->GetIntDefault("LogLevel", LOGL_NORMAL);
|
||||
m_logFileLevel = sConfig->GetIntDefault("LogFileLevel", LOGL_NORMAL);
|
||||
m_dbLogLevel = sConfig->GetIntDefault("DBLogLevel", LOGL_NORMAL);
|
||||
|
||||
m_DebugLogMask = DebugLogFilters(sConfig->GetIntDefault("DebugLogMask", LOG_FILTER_NONE));
|
||||
}
|
||||
|
||||
FILE* Log::openLogFile(char const* configFileName, char const* configTimeStampFlag, char const* mode)
|
||||
{
|
||||
std::string logfn=sConfig->GetStringDefault(configFileName, "");
|
||||
|
||||
Reference in new issue
Block a user