mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-14 15:41:30 +00:00
Remove Save from LogTypes
This commit is contained in:
parent
9d355f0f99
commit
b1939aaa3e
@ -69,7 +69,6 @@ static const char* TypeNames[EQEmuLogSys::MaxLogID] = {
|
|||||||
"Quest",
|
"Quest",
|
||||||
"Command",
|
"Command",
|
||||||
"Crash",
|
"Crash",
|
||||||
"Save",
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/* If you add to this, make sure you update LogCategory in eqemu_logsys.h */
|
/* If you add to this, make sure you update LogCategory in eqemu_logsys.h */
|
||||||
@ -155,6 +154,7 @@ void EQEmuLogSys::LogDebug(DebugLevel debug_level, std::string message, ...)
|
|||||||
va_start(args, message);
|
va_start(args, message);
|
||||||
std::string output_message = vStringFormat(message.c_str(), args);
|
std::string output_message = vStringFormat(message.c_str(), args);
|
||||||
va_end(args);
|
va_end(args);
|
||||||
|
|
||||||
EQEmuLogSys::Log(EQEmuLogSys::LogType::Debug, output_message);
|
EQEmuLogSys::Log(EQEmuLogSys::LogType::Debug, output_message);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -192,7 +192,7 @@ void EQEmuLogSys::Log(uint16 log_type, const std::string message, ...)
|
|||||||
va_end(args);
|
va_end(args);
|
||||||
|
|
||||||
if (EQEmuLogSys::log_platform == EQEmuExePlatform::ExePlatformZone){
|
if (EQEmuLogSys::log_platform == EQEmuExePlatform::ExePlatformZone){
|
||||||
on_log_gmsay_hook(output_message);
|
on_log_gmsay_hook(log_type, output_message);
|
||||||
}
|
}
|
||||||
|
|
||||||
EQEmuLogSys::ConsoleMessage(log_type, output_message);
|
EQEmuLogSys::ConsoleMessage(log_type, output_message);
|
||||||
|
|||||||
@ -39,7 +39,6 @@ public:
|
|||||||
Quest, /* Quest Logs */
|
Quest, /* Quest Logs */
|
||||||
Commands, /* Issued Commands */
|
Commands, /* Issued Commands */
|
||||||
Crash, /* Crash Logs */
|
Crash, /* Crash Logs */
|
||||||
Save, /* Client Saves */
|
|
||||||
MaxLogID /* Max, used in functions to get the max log ID */
|
MaxLogID /* Max, used in functions to get the max log ID */
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -74,13 +73,13 @@ public:
|
|||||||
|
|
||||||
void CloseZoneLogs();
|
void CloseZoneLogs();
|
||||||
void ConsoleMessage(uint16 log_type, const std::string message);
|
void ConsoleMessage(uint16 log_type, const std::string message);
|
||||||
|
void LoadLogSettings();
|
||||||
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 LogDebug(DebugLevel debug_level, std::string message, ...);
|
||||||
void LogDebugType(DebugLevel debug_level, uint16 log_type, std::string message, ...);
|
void LogDebugType(DebugLevel debug_level, uint16 log_type, 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);
|
||||||
void StartLogs(const std::string log_name);
|
void StartLogs(const std::string log_name);
|
||||||
void LoadLogSettings();
|
|
||||||
|
|
||||||
struct LogSettings{
|
struct LogSettings{
|
||||||
uint8 log_to_file;
|
uint8 log_to_file;
|
||||||
@ -92,7 +91,7 @@ public:
|
|||||||
bool log_settings_loaded = false;
|
bool log_settings_loaded = false;
|
||||||
int log_platform = 0;
|
int log_platform = 0;
|
||||||
|
|
||||||
void OnLogHookCallBack(std::function<void(uint16 log_type, std::string&)> f) { on_log_gmsay_hook = f; }
|
void OnLogHookCallBackZone(std::function<void(uint16 log_type, std::string&)> f) { on_log_gmsay_hook = f; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool zone_general_init = false;
|
bool zone_general_init = false;
|
||||||
|
|||||||
@ -116,7 +116,7 @@ extern void MapOpcodes();
|
|||||||
int main(int argc, char** argv) {
|
int main(int argc, char** argv) {
|
||||||
RegisterExecutablePlatform(ExePlatformZone);
|
RegisterExecutablePlatform(ExePlatformZone);
|
||||||
logger.LoadLogSettings();
|
logger.LoadLogSettings();
|
||||||
logger.OnLog(&ClientLogs::ClientMessage);
|
logger.OnLogHookCallBackZone(&ClientLogs::ClientMessage);
|
||||||
set_exception_handler();
|
set_exception_handler();
|
||||||
|
|
||||||
const char *zone_name;
|
const char *zone_name;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user