mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-22 07:28:32 +00:00
Preliminary addition of log settings map
This commit is contained in:
@@ -46,6 +46,13 @@ public:
|
||||
Detail, /* 2 - Use this for extreme detail in logging, usually in extreme debugging in the stack or interprocess communication */
|
||||
};
|
||||
|
||||
enum LogCategory {
|
||||
Netcode = 0,
|
||||
Guilds,
|
||||
Rules,
|
||||
MaxCategoryID /* Don't Remove this*/
|
||||
};
|
||||
|
||||
void CloseZoneLogs();
|
||||
void ConsoleMessage(uint16 log_type, const std::string message);
|
||||
void Log(uint16 log_type, const std::string message, ...);
|
||||
@@ -55,6 +62,14 @@ public:
|
||||
void SetCurrentTimeStamp(char* time_stamp);
|
||||
void StartZoneLogs(const std::string log_name);
|
||||
|
||||
struct LogSettings{
|
||||
uint8 log_to_file;
|
||||
uint8 log_to_console;
|
||||
uint8 log_to_gmsay;
|
||||
};
|
||||
|
||||
LogSettings log_settings[EQEmuLogSys::LogCategory::MaxCategoryID];
|
||||
|
||||
private:
|
||||
bool zone_general_init = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user