mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 05:21:29 +00:00
delete world/world_logsys.cpp
This commit is contained in:
parent
1ae69aa180
commit
3320867b10
@ -25,7 +25,6 @@ SET(world_sources
|
|||||||
queryserv.cpp
|
queryserv.cpp
|
||||||
ucs.cpp
|
ucs.cpp
|
||||||
wguild_mgr.cpp
|
wguild_mgr.cpp
|
||||||
world_logsys.cpp
|
|
||||||
world_config.cpp
|
world_config.cpp
|
||||||
worlddb.cpp
|
worlddb.cpp
|
||||||
zonelist.cpp
|
zonelist.cpp
|
||||||
|
|||||||
@ -1,59 +0,0 @@
|
|||||||
|
|
||||||
#include "../common/debug.h"
|
|
||||||
#include "../common/logsys.h"
|
|
||||||
#include "../common/string_util.h"
|
|
||||||
|
|
||||||
#include "zoneserver.h"
|
|
||||||
#include "client.h"
|
|
||||||
|
|
||||||
#include <stdarg.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
|
|
||||||
|
|
||||||
void log_message_clientVA(LogType type, Client *who, const char *fmt, va_list args) {
|
|
||||||
|
|
||||||
std::string prefix_buffer = StringFormat("[%s] %s: ", log_type_info[type].name, who->GetAccountName());
|
|
||||||
|
|
||||||
LogFile->writePVA(EQEmuLog::Debug, prefix_buffer.c_str(), fmt, args);
|
|
||||||
}
|
|
||||||
|
|
||||||
void log_message_client(LogType type, Client *who, const char *fmt, ...) {
|
|
||||||
va_list args;
|
|
||||||
va_start(args, fmt);
|
|
||||||
log_message_clientVA(type, who, fmt, args);
|
|
||||||
va_end(args);
|
|
||||||
}
|
|
||||||
|
|
||||||
void log_message_zoneVA(LogType type, ZoneServer *who, const char *fmt, va_list args) {
|
|
||||||
|
|
||||||
std::string prefix_buffer, zone_tag;
|
|
||||||
const char *zone_name=who->GetZoneName();
|
|
||||||
|
|
||||||
if (zone_name == nullptr)
|
|
||||||
zone_tag = StringFormat("[%d]", who->GetID());
|
|
||||||
else
|
|
||||||
zone_tag = StringFormat("[%d] [%s]",who->GetID(),zone_name);
|
|
||||||
|
|
||||||
prefix_buffer = StringFormat("[%s] %s ", log_type_info[type].name, zone_tag.c_str());
|
|
||||||
|
|
||||||
LogFile->writePVA(EQEmuLog::Debug, prefix_buffer.c_str(), fmt, args);
|
|
||||||
}
|
|
||||||
|
|
||||||
void log_message_zone(LogType type, ZoneServer *who, const char *fmt, ...) {
|
|
||||||
va_list args;
|
|
||||||
va_start(args, fmt);
|
|
||||||
log_message_zoneVA(type, who, fmt, args);
|
|
||||||
va_end(args);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user