RULE_INT(Logging, DebugLogLevel, 0) /* Sets Debug Level, -1 = OFF, 0 = Low Level, 1 = Info, 2 = Extreme */

This commit is contained in:
Akkadius
2015-01-10 14:59:32 -06:00
parent 84741e4cb1
commit 9e4ef74dd5
3 changed files with 12 additions and 3 deletions
+5
View File
@@ -91,10 +91,15 @@ void EQEmuLogSys::StartZoneLogs(const std::string log_name)
}
void EQEmuLogSys::LogDebug(DebugLevel debug_level, std::string message, ...){
if (RuleI(Logging, DebugLogLevel) < debug_level){
return;
}
va_list args;
va_start(args, message);
std::string output_message = vStringFormat(message.c_str(), args);
va_end(args);
EQEmuLogSys::Log(EQEmuLogSys::LogType::Debug, output_message);
}