Bunch of crazy changes to remove logsys

This commit is contained in:
Akkadius
2015-01-18 03:23:36 -06:00
parent 7fac4d5f52
commit b3bedef7af
11 changed files with 88 additions and 73 deletions
+20
View File
@@ -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;