mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-22 12:18:27 +00:00
Renamed DebugCategory to DoLog as the aggregate logging function for simplicity of use and shortened syntax of Log.DoLog
This commit is contained in:
@@ -91,7 +91,7 @@ void EQEmuLogSys::LoadLogSettingsDefaults()
|
||||
log_settings_loaded = true;
|
||||
}
|
||||
|
||||
std::string EQEmuLogSys::FormatDebugCategoryMessageString(uint16 log_category, std::string in_message){
|
||||
std::string EQEmuLogSys::FormatDoLogMessageString(uint16 log_category, std::string in_message){
|
||||
std::string category_string = "";
|
||||
if (log_category > 0 && LogCategoryName[log_category]){
|
||||
category_string = StringFormat("[%s] ", LogCategoryName[log_category]);
|
||||
@@ -162,14 +162,14 @@ void EQEmuLogSys::ProcessConsoleMessage(uint16 log_category, const std::string m
|
||||
#endif
|
||||
}
|
||||
|
||||
void EQEmuLogSys::DebugCategory(DebugLevel debug_level, uint16 log_category, std::string message, ...)
|
||||
void EQEmuLogSys::DoLog(DebugLevel debug_level, uint16 log_category, std::string message, ...)
|
||||
{
|
||||
va_list args;
|
||||
va_start(args, message);
|
||||
std::string output_message = vStringFormat(message.c_str(), args);
|
||||
va_end(args);
|
||||
|
||||
std::string output_debug_message = EQEmuLogSys::FormatDebugCategoryMessageString(log_category, output_message);
|
||||
std::string output_debug_message = EQEmuLogSys::FormatDoLogMessageString(log_category, output_message);
|
||||
|
||||
EQEmuLogSys::ProcessConsoleMessage(log_category, output_debug_message);
|
||||
EQEmuLogSys::ProcessGMSay(log_category, output_debug_message);
|
||||
|
||||
Reference in New Issue
Block a user