mirror of
https://github.com/EQEmu/Server.git
synced 2026-02-17 22:12:24 +00:00
Add category to ProcessConsoleMessage
This commit is contained in:
parent
1e10e088ad
commit
723b87bba4
@ -155,7 +155,7 @@ void EQEmuLogSys::ProcessLogWrite(uint16 log_type, std::string message){
|
||||
}
|
||||
}
|
||||
|
||||
void EQEmuLogSys::ProcessConsoleMessage(uint16 log_type, const std::string message)
|
||||
void EQEmuLogSys::ProcessConsoleMessage(uint16 log_type, uint16 log_category, const std::string message)
|
||||
{
|
||||
if (log_type > EQEmuLogSys::MaxLogID){
|
||||
return;
|
||||
@ -195,7 +195,7 @@ void EQEmuLogSys::LogDebugType(DebugLevel debug_level, uint16 log_category, std:
|
||||
|
||||
std::string output_debug_message = EQEmuLogSys::FormatDebugCategoryMessageString(log_category, output_message);
|
||||
|
||||
EQEmuLogSys::ProcessConsoleMessage(EQEmuLogSys::Debug, output_debug_message);
|
||||
EQEmuLogSys::ProcessConsoleMessage(EQEmuLogSys::Debug, 0, output_debug_message);
|
||||
EQEmuLogSys::ProcessGMSay(EQEmuLogSys::Debug, 0, output_debug_message);
|
||||
EQEmuLogSys::ProcessLogWrite(EQEmuLogSys::Debug, output_debug_message);
|
||||
}
|
||||
@ -207,7 +207,7 @@ void EQEmuLogSys::LogDebug(DebugLevel debug_level, std::string message, ...)
|
||||
std::string output_message = vStringFormat(message.c_str(), args);
|
||||
va_end(args);
|
||||
|
||||
EQEmuLogSys::ProcessConsoleMessage(EQEmuLogSys::Debug, output_message);
|
||||
EQEmuLogSys::ProcessConsoleMessage(EQEmuLogSys::Debug, 0, output_message);
|
||||
EQEmuLogSys::ProcessGMSay(EQEmuLogSys::Debug, 0, output_message);
|
||||
EQEmuLogSys::ProcessLogWrite(EQEmuLogSys::Debug, output_message);
|
||||
}
|
||||
@ -223,7 +223,7 @@ void EQEmuLogSys::Log(uint16 log_type, const std::string message, ...)
|
||||
std::string output_message = vStringFormat(message.c_str(), args);
|
||||
va_end(args);
|
||||
|
||||
EQEmuLogSys::ProcessConsoleMessage(log_type, output_message);
|
||||
EQEmuLogSys::ProcessConsoleMessage(log_type, 0, output_message);
|
||||
EQEmuLogSys::ProcessGMSay(log_type, 0, output_message);
|
||||
EQEmuLogSys::ProcessLogWrite(log_type, output_message);
|
||||
}
|
||||
|
||||
@ -101,8 +101,8 @@ private:
|
||||
|
||||
std::string FormatDebugCategoryMessageString(uint16 log_category, std::string in_message);
|
||||
|
||||
void ProcessConsoleMessage(uint16 log_type, const std::string message);
|
||||
void ProcessGMSay(uint16 log_type, std::string message);
|
||||
void ProcessConsoleMessage(uint16 log_type, uint16 log_category, const std::string message);
|
||||
void ProcessGMSay(uint16 log_type, uint16 log_category, std::string message);
|
||||
void ProcessLogWrite(uint16 log_type, std::string message);
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user