More stuff

This commit is contained in:
Akkadius 2015-01-19 04:27:22 -06:00
parent f9ba4739f5
commit 56a4459aa8

View File

@ -115,7 +115,6 @@ namespace Logs{
"World Server", "World Server",
"Zone Server", "Zone Server",
}; };
} }
class EQEmuLogSys { class EQEmuLogSys {
@ -129,7 +128,6 @@ public:
void Out(Logs::DebugLevel debug_level, uint16 log_category, std::string message, ...); void Out(Logs::DebugLevel debug_level, uint16 log_category, std::string message, ...);
void SetCurrentTimeStamp(char* time_stamp); void SetCurrentTimeStamp(char* time_stamp);
void StartFileLogs(const std::string log_name); void StartFileLogs(const std::string log_name);
uint16 GetConsoleColorFromCategory(uint16 log_category);
struct LogSettings{ struct LogSettings{
uint8 log_to_file; uint8 log_to_file;
@ -145,10 +143,12 @@ public:
private: private:
bool zone_general_init = false; bool zone_general_init = false;
std::function<void(uint16 log_category, std::string&)> on_log_gmsay_hook;
std::function<void(uint16 log_category, std::string&)> on_log_gmsay_hook;
std::string FormatOutMessageString(uint16 log_category, std::string in_message); std::string FormatOutMessageString(uint16 log_category, std::string in_message);
uint16 GetConsoleColorFromCategory(uint16 log_category);
void ProcessConsoleMessage(uint16 log_category, const std::string message); void ProcessConsoleMessage(uint16 log_category, const std::string message);
void ProcessGMSay(uint16 log_category, std::string message); void ProcessGMSay(uint16 log_category, std::string message);
void ProcessLogWrite(uint16 log_category, std::string message); void ProcessLogWrite(uint16 log_category, std::string message);