mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-14 19:51:29 +00:00
Preliminary addition of log settings map
This commit is contained in:
parent
3c53d907da
commit
489f24a80a
@ -69,19 +69,12 @@ static const char* TypeNames[EQEmuLogSys::MaxLogID] = {
|
|||||||
"Command",
|
"Command",
|
||||||
"Crash",
|
"Crash",
|
||||||
"Save",
|
"Save",
|
||||||
/*
|
};
|
||||||
"UCS",
|
|
||||||
"Query Server",
|
static const char* LogCategoryName[EQEmuLogSys::LogCategory::MaxCategoryID] = {
|
||||||
"Socket Server",
|
"Netcode",
|
||||||
"Spawns",
|
"Guilds",
|
||||||
"AI",
|
"Rules",
|
||||||
"Pathing",
|
|
||||||
"Quests",
|
|
||||||
"Spells",
|
|
||||||
"Zone",
|
|
||||||
"Tasks",
|
|
||||||
"Trading",
|
|
||||||
*/
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static Console::Color LogColors[EQEmuLogSys::MaxLogID] = {
|
static Console::Color LogColors[EQEmuLogSys::MaxLogID] = {
|
||||||
@ -96,6 +89,11 @@ static Console::Color LogColors[EQEmuLogSys::MaxLogID] = {
|
|||||||
|
|
||||||
|
|
||||||
EQEmuLogSys::EQEmuLogSys(){
|
EQEmuLogSys::EQEmuLogSys(){
|
||||||
|
// LogSettings log_settings;
|
||||||
|
for (int i = 0; i < EQEmuLogSys::LogCategory::MaxCategoryID; i++){
|
||||||
|
log_settings[i].log_to_console = 1;
|
||||||
|
std::cout << "Setting log settings for " << i << " " << LogCategoryName[i] << " " << std::endl;
|
||||||
|
}
|
||||||
std::cout << "I AM CONSTRUCTING!!!! LUL " << std::endl;
|
std::cout << "I AM CONSTRUCTING!!!! LUL " << std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -46,6 +46,13 @@ 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 */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
enum LogCategory {
|
||||||
|
Netcode = 0,
|
||||||
|
Guilds,
|
||||||
|
Rules,
|
||||||
|
MaxCategoryID /* Don't Remove this*/
|
||||||
|
};
|
||||||
|
|
||||||
void CloseZoneLogs();
|
void CloseZoneLogs();
|
||||||
void ConsoleMessage(uint16 log_type, const std::string message);
|
void ConsoleMessage(uint16 log_type, const std::string message);
|
||||||
void Log(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 SetCurrentTimeStamp(char* time_stamp);
|
||||||
void StartZoneLogs(const std::string log_name);
|
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:
|
private:
|
||||||
bool zone_general_init = false;
|
bool zone_general_init = false;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user