mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 22:58:34 +00:00
RULE_INT(Logging, DebugLogLevel, 0) /* Sets Debug Level, -1 = OFF, 0 = Low Level, 1 = Info, 2 = Extreme */
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -599,6 +599,7 @@ RULE_CATEGORY_END()
|
||||
RULE_CATEGORY(Logging)
|
||||
RULE_BOOL(Logging, ConsoleLogCommands, false) /* Turns on or off console logs */
|
||||
RULE_BOOL(Logging, LogFileCommands, false)
|
||||
RULE_INT(Logging, DebugLogLevel, 0) /* Sets Debug Level, -1 = OFF, 0 = Low Level, 1 = Info, 2 = Extreme */
|
||||
RULE_CATEGORY_END()
|
||||
|
||||
|
||||
@@ -606,5 +607,4 @@ RULE_CATEGORY_END()
|
||||
#undef RULE_INT
|
||||
#undef RULE_REAL
|
||||
#undef RULE_BOOL
|
||||
#undef RULE_CATEGORY_END
|
||||
|
||||
#undef RULE_CATEGORY_END
|
||||
Reference in New Issue
Block a user