mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 01:11:29 +00:00
Remove debugging and generalize the Log function
This commit is contained in:
parent
f4e33f6faa
commit
01ca81a177
@ -165,7 +165,7 @@ bool EQEmuLog::write(LogIDs id, const char *fmt, ...)
|
||||
va_list argptr, tmpargptr;
|
||||
va_start(argptr, fmt);
|
||||
|
||||
backport_log_sys.WriteZoneLog(id, vStringFormat(fmt, argptr).c_str());
|
||||
backport_log_sys.Log(id, vStringFormat(fmt, argptr).c_str());
|
||||
|
||||
if (logCallbackFmt[id]) {
|
||||
msgCallbackFmt p = logCallbackFmt[id];
|
||||
|
||||
@ -41,7 +41,7 @@ public:
|
||||
};
|
||||
|
||||
void StartZoneLogs(const std::string log_name);
|
||||
void WriteZoneLog(uint16 log_type, const std::string message);
|
||||
void Log(uint16 log_type, const std::string message);
|
||||
void CloseZoneLogs();
|
||||
void ConsoleMessage(uint16 log_type, const std::string message);
|
||||
|
||||
@ -52,4 +52,6 @@ private:
|
||||
|
||||
extern EQEmuLogSys log_sys;
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
@ -154,11 +154,6 @@ bool Zone::Bootup(uint32 iZoneID, uint32 iInstanceID, bool iStaticZone) {
|
||||
|
||||
log_sys.StartZoneLogs(StringFormat("%s_ver-%u_instid-%u_port-%u", zone->GetShortName(), zone->GetInstanceVersion(), zone->GetInstanceID(), ZoneConfig::get()->ZonePort));
|
||||
|
||||
clock_t t = std::clock(); /* Function timer start */
|
||||
uint64 i = 0;
|
||||
|
||||
log_sys.WriteZoneLog(1, "This is some serious shit");
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user