mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 18:52:22 +00:00
Various logging adjustments
This commit is contained in:
@@ -134,7 +134,7 @@ void EQEmuLogSys::ProcessLogWrite(uint16 debug_level, uint16 log_category, std::
|
||||
EQEmuLogSys::SetCurrentTimeStamp(time_stamp);
|
||||
|
||||
if (process_log){
|
||||
process_log << time_stamp << " " << StringFormat("[%s] ", Logs::LogCategoryName[log_category]).c_str() << message << std::endl;
|
||||
process_log << time_stamp << " " << message << std::endl;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -140,7 +140,9 @@ public:
|
||||
};
|
||||
|
||||
LogSettings log_settings[Logs::LogCategory::MaxCategoryID];
|
||||
|
||||
bool log_settings_loaded = false;
|
||||
|
||||
int log_platform = 0;
|
||||
|
||||
uint16 GetGMSayColorFromCategory(uint16 log_category);
|
||||
@@ -152,9 +154,9 @@ private:
|
||||
|
||||
std::function<void(uint16 log_category, std::string&)> on_log_gmsay_hook;
|
||||
std::string FormatOutMessageString(uint16 log_category, std::string in_message);
|
||||
std::string GetLinuxConsoleColorFromCategory(uint16 log_category);
|
||||
|
||||
uint16 GetWindowsConsoleColorFromCategory(uint16 log_category);
|
||||
std::string GetLinuxConsoleColorFromCategory(uint16 log_category);
|
||||
|
||||
void ProcessConsoleMessage(uint16 debug_level, uint16 log_category, const std::string message);
|
||||
void ProcessGMSay(uint16 debug_level, uint16 log_category, std::string message);
|
||||
|
||||
Reference in New Issue
Block a user