mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-11 15:22:26 +00:00
Consolidate 'LogType' over to 'LogCategory'
This commit is contained in:
parent
ef04c90d8e
commit
975c298c85
@ -48,45 +48,52 @@ public:
|
|||||||
Detail, /* 2 - Use this for extreme detail in logging, usually in extreme debugging in the stack or interprocess communication */
|
Detail, /* 2 - Use this for extreme detail in logging, usually in extreme debugging in the stack or interprocess communication */
|
||||||
};
|
};
|
||||||
|
|
||||||
/* If you add to this, make sure you update LogCategoryName */
|
/*
|
||||||
|
If you add to this, make sure you update LogCategoryName
|
||||||
|
NOTE: Only add to the bottom of the enum because that is the type ID assignment
|
||||||
|
*/
|
||||||
enum LogCategory {
|
enum LogCategory {
|
||||||
None = 0,
|
None = 0,
|
||||||
Zone_Server = 1,
|
|
||||||
World_Server,
|
|
||||||
UCS_Server,
|
|
||||||
QS_Server,
|
|
||||||
WebInterface_Server,
|
|
||||||
AA,
|
AA,
|
||||||
|
AI,
|
||||||
|
Aggro,
|
||||||
|
Attack,
|
||||||
|
Client_Server_Packet,
|
||||||
|
Combat,
|
||||||
|
Commands,
|
||||||
|
Crash,
|
||||||
|
Debug,
|
||||||
Doors,
|
Doors,
|
||||||
|
Error,
|
||||||
Guilds,
|
Guilds,
|
||||||
Inventory,
|
Inventory,
|
||||||
Launcher,
|
Launcher,
|
||||||
Netcode,
|
Netcode,
|
||||||
|
Normal,
|
||||||
Object,
|
Object,
|
||||||
|
Pathing,
|
||||||
|
QS_Server,
|
||||||
|
Quests,
|
||||||
Rules,
|
Rules,
|
||||||
Skills,
|
Skills,
|
||||||
Spawns,
|
Spawns,
|
||||||
Spells,
|
Spells,
|
||||||
Tasks,
|
Status,
|
||||||
Trading,
|
|
||||||
Tradeskills,
|
|
||||||
Tribute,
|
|
||||||
TCP_Connection,
|
TCP_Connection,
|
||||||
Client_Server_Packet,
|
Tasks,
|
||||||
Aggro,
|
Tradeskills,
|
||||||
Attack,
|
Trading,
|
||||||
Quests,
|
Tribute,
|
||||||
AI,
|
UCS_Server,
|
||||||
Combat,
|
WebInterface_Server,
|
||||||
Pathing,
|
World_Server,
|
||||||
|
Zone_Server,
|
||||||
MaxCategoryID /* Don't Remove this*/
|
MaxCategoryID /* Don't Remove this*/
|
||||||
};
|
};
|
||||||
|
|
||||||
void CloseFileLogs();
|
void CloseFileLogs();
|
||||||
void LoadLogSettingsDefaults();
|
void LoadLogSettingsDefaults();
|
||||||
void Log(uint16 log_type, const std::string message, ...);
|
void Log(uint16 log_type, const std::string message, ...);
|
||||||
//void LogDebug(DebugLevel debug_level, std::string message, ...);
|
|
||||||
//void DebugCategory(DebugLevel debug_level, uint16 log_category, std::string message, ...);
|
|
||||||
void DebugCategory(DebugLevel debug_level, uint16 log_category, std::string message, ...);
|
void DebugCategory(DebugLevel debug_level, uint16 log_category, std::string message, ...);
|
||||||
void MakeDirectory(std::string directory_name);
|
void MakeDirectory(std::string directory_name);
|
||||||
void SetCurrentTimeStamp(char* time_stamp);
|
void SetCurrentTimeStamp(char* time_stamp);
|
||||||
@ -120,34 +127,40 @@ extern EQEmuLogSys Log;
|
|||||||
/* If you add to this, make sure you update LogCategory */
|
/* If you add to this, make sure you update LogCategory */
|
||||||
static const char* LogCategoryName[EQEmuLogSys::LogCategory::MaxCategoryID] = {
|
static const char* LogCategoryName[EQEmuLogSys::LogCategory::MaxCategoryID] = {
|
||||||
"",
|
"",
|
||||||
"Zone",
|
|
||||||
"World",
|
|
||||||
"UCS",
|
|
||||||
"QueryServer",
|
|
||||||
"WebInterface",
|
|
||||||
"AA",
|
"AA",
|
||||||
|
"AI",
|
||||||
|
"Aggro",
|
||||||
|
"Attack",
|
||||||
|
"Client_Server_Packet",
|
||||||
|
"Combat",
|
||||||
|
"Commands",
|
||||||
|
"Crash",
|
||||||
|
"Debug",
|
||||||
"Doors",
|
"Doors",
|
||||||
"Guild",
|
"Error",
|
||||||
|
"Guilds",
|
||||||
"Inventory",
|
"Inventory",
|
||||||
"Launcher",
|
"Launcher",
|
||||||
"Netcode",
|
"Netcode",
|
||||||
|
"Normal",
|
||||||
"Object",
|
"Object",
|
||||||
|
"Pathing",
|
||||||
|
"QS_Server",
|
||||||
|
"Quests",
|
||||||
"Rules",
|
"Rules",
|
||||||
"Skills",
|
"Skills",
|
||||||
"Spawns",
|
"Spawns",
|
||||||
"Spells",
|
"Spells",
|
||||||
"Tasks",
|
"Status",
|
||||||
"Trading",
|
|
||||||
"Tradeskills",
|
|
||||||
"Tribute",
|
|
||||||
"TCP_Connection",
|
"TCP_Connection",
|
||||||
"Client_Server_Packet",
|
"Tasks",
|
||||||
"Aggro",
|
"Tradeskills",
|
||||||
"Attack",
|
"Trading",
|
||||||
"Quests",
|
"Tribute",
|
||||||
"AI",
|
"UCS_Server",
|
||||||
"Combat",
|
"WebInterface_Server",
|
||||||
"Pathing"
|
"World_Server",
|
||||||
|
"Zone_Server",
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
Loading…
x
Reference in New Issue
Block a user