mirror of
https://github.com/EQEmu/Server.git
synced 2026-01-09 16:33:53 +00:00
Add LogDebugType(DebugLevel debug_level, uint16 log_type, std::string message, ...)
This commit is contained in:
parent
17d9b9199c
commit
ce0a5cf7b8
@ -90,6 +90,10 @@ void EQEmuLogSys::StartZoneLogs(const std::string log_name)
|
||||
process_log.open(StringFormat("logs/zone/%s.txt", log_name.c_str()), std::ios_base::app | std::ios_base::out);
|
||||
}
|
||||
|
||||
void EQEmuLogSys::LogDebugType(DebugLevel debug_level, uint16 log_type, std::string message, ...){
|
||||
|
||||
}
|
||||
|
||||
void EQEmuLogSys::LogDebug(DebugLevel debug_level, std::string message, ...)
|
||||
{
|
||||
if (RuleI(Logging, DebugLogLevel) < debug_level){ return; }
|
||||
@ -116,7 +120,7 @@ void EQEmuLogSys::Log(uint16 log_type, const std::string message, ...)
|
||||
|
||||
auto t = std::time(nullptr);
|
||||
auto tm = *std::localtime(&t);
|
||||
EQEmuLogSys::ConsoleMessage(log_type, message);
|
||||
EQEmuLogSys::ConsoleMessage(log_type, output_message);
|
||||
|
||||
if (process_log){
|
||||
process_log << std::put_time(&tm, "[%d-%m-%Y :: %H:%M:%S] ") << StringFormat("[%s] ", TypeNames[log_type]).c_str() << output_message << std::endl;
|
||||
|
||||
@ -49,6 +49,7 @@ public:
|
||||
void CloseZoneLogs();
|
||||
void ConsoleMessage(uint16 log_type, const std::string message);
|
||||
void LogDebug(DebugLevel debug_level, std::string message, ...);
|
||||
void LogDebugType(DebugLevel debug_level, uint16 log_type, std::string message, ...);
|
||||
void Log(uint16 log_type, const std::string message, ...);
|
||||
void StartZoneLogs(const std::string log_name);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user