mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-05 13:32:26 +00:00
Consolidate EQEmuLogsys::Debug stragglers to DebugCategory for further refactoring
This commit is contained in:
parent
58d0b86a67
commit
726b3a33f5
@ -190,17 +190,17 @@ void EQEmuLogSys::DebugCategory(DebugLevel debug_level, uint16 log_category, std
|
|||||||
EQEmuLogSys::ProcessLogWrite(EQEmuLogSys::Debug, log_category, output_debug_message);
|
EQEmuLogSys::ProcessLogWrite(EQEmuLogSys::Debug, log_category, output_debug_message);
|
||||||
}
|
}
|
||||||
|
|
||||||
void EQEmuLogSys::LogDebug(DebugLevel debug_level, std::string message, ...)
|
// void EQEmuLogSys::LogDebug(DebugLevel debug_level, std::string message, ...)
|
||||||
{
|
// {
|
||||||
va_list args;
|
// va_list args;
|
||||||
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::ProcessConsoleMessage(EQEmuLogSys::Debug, 0, output_message);
|
// EQEmuLogSys::ProcessConsoleMessage(EQEmuLogSys::Debug, 0, output_message);
|
||||||
EQEmuLogSys::ProcessGMSay(EQEmuLogSys::Debug, 0, output_message);
|
// EQEmuLogSys::ProcessGMSay(EQEmuLogSys::Debug, 0, output_message);
|
||||||
EQEmuLogSys::ProcessLogWrite(EQEmuLogSys::Debug, 0, output_message);
|
// EQEmuLogSys::ProcessLogWrite(EQEmuLogSys::Debug, 0, output_message);
|
||||||
}
|
// }
|
||||||
|
|
||||||
void EQEmuLogSys::Log(uint16 log_type, const std::string message, ...)
|
void EQEmuLogSys::Log(uint16 log_type, const std::string message, ...)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -85,7 +85,7 @@ public:
|
|||||||
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 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 DebugCategory(DebugLevel debug_level, uint16 log_category, std::string message, ...);
|
||||||
void MakeDirectory(std::string directory_name);
|
void MakeDirectory(std::string directory_name);
|
||||||
|
|||||||
@ -560,13 +560,13 @@ void Doors::ToggleState(Mob *sender)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Doors::DumpDoor(){
|
void Doors::DumpDoor(){
|
||||||
logger.LogDebug(EQEmuLogSys::General,
|
logger.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::None,
|
||||||
"db_id:%i door_id:%i zone_name:%s door_name:%s pos_x:%f pos_y:%f pos_z:%f heading:%f",
|
"db_id:%i door_id:%i zone_name:%s door_name:%s pos_x:%f pos_y:%f pos_z:%f heading:%f",
|
||||||
db_id, door_id, zone_name, door_name, pos_x, pos_y, pos_z, heading);
|
db_id, door_id, zone_name, door_name, pos_x, pos_y, pos_z, heading);
|
||||||
logger.LogDebug(EQEmuLogSys::General,
|
logger.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::None,
|
||||||
"opentype:%i guild_id:%i lockpick:%i keyitem:%i nokeyring:%i trigger_door:%i trigger_type:%i door_param:%i open:%s",
|
"opentype:%i guild_id:%i lockpick:%i keyitem:%i nokeyring:%i trigger_door:%i trigger_type:%i door_param:%i open:%s",
|
||||||
opentype, guild_id, lockpick, keyitem, nokeyring, trigger_door, trigger_type, door_param, (isopen) ? "open":"closed");
|
opentype, guild_id, lockpick, keyitem, nokeyring, trigger_door, trigger_type, door_param, (isopen) ? "open":"closed");
|
||||||
logger.LogDebug(EQEmuLogSys::General,
|
logger.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::None,
|
||||||
"dest_zone:%s dest_x:%f dest_y:%f dest_z:%f dest_heading:%f",
|
"dest_zone:%s dest_x:%f dest_y:%f dest_z:%f dest_heading:%f",
|
||||||
dest_zone, dest_x, dest_y, dest_z, dest_heading);
|
dest_zone, dest_x, dest_y, dest_z, dest_heading);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user