mirror of
https://github.com/EQEmu/Server.git
synced 2026-08-30 22:06:46 +00:00
Bunch of crazy changes to remove logsys
This commit is contained in:
@@ -18,9 +18,11 @@
|
||||
|
||||
|
||||
#include "eqemu_logsys.h"
|
||||
// #include "base_packet.h"
|
||||
#include "platform.h"
|
||||
#include "string_util.h"
|
||||
#include "database.h"
|
||||
#include "misc.h"
|
||||
|
||||
#include <iostream>
|
||||
#include <fstream>
|
||||
@@ -162,6 +164,24 @@ void EQEmuLogSys::ProcessConsoleMessage(uint16 log_category, const std::string m
|
||||
#endif
|
||||
}
|
||||
|
||||
void EQEmuLogSys::Hex(uint16 log_category, const void *data, unsigned long length, unsigned char padding) {
|
||||
return;
|
||||
char buffer[80];
|
||||
uint32 offset;
|
||||
for (offset = 0; offset < length; offset += 16) {
|
||||
build_hex_line((const char *)data, length, offset, buffer, padding);
|
||||
// log_message(type, "%s", buffer); //%s is to prevent % escapes in the ascii
|
||||
}
|
||||
}
|
||||
|
||||
void EQEmuLogSys::Raw(uint16 log_category, uint16 seq, const BasePacket *p) {
|
||||
return;
|
||||
char buffer[196];
|
||||
p->build_raw_header_dump(buffer, seq);
|
||||
//log_message(type,buffer);
|
||||
EQEmuLogSys::Hex(log_category, (const char *)p->pBuffer, p->size);
|
||||
}
|
||||
|
||||
void EQEmuLogSys::Out(Logs::DebugLevel debug_level, uint16 log_category, std::string message, ...)
|
||||
{
|
||||
va_list args;
|
||||
|
||||
Reference in New Issue
Block a user