Remove EQEmuLogSys::Log from consolidation of types into categories

This commit is contained in:
Akkadius 2015-01-18 01:39:01 -06:00
parent 063a9214ae
commit 57ac6c0e98
3 changed files with 1 additions and 28 deletions

View File

@ -158,7 +158,7 @@ bool EQEmuLog::write(LogIDs id, const char *fmt, ...)
va_list argptr, tmpargptr;
va_start(argptr, fmt);
Log.Log(id, vStringFormat(fmt, argptr).c_str());
// Log.Log(id, vStringFormat(fmt, argptr).c_str());
return true;
}

View File

@ -190,22 +190,6 @@ void EQEmuLogSys::DebugCategory(DebugLevel debug_level, uint16 log_category, std
EQEmuLogSys::ProcessLogWrite(EQEmuLogSys::Debug, log_category, output_debug_message);
}
void EQEmuLogSys::Log(uint16 log_type, const std::string message, ...)
{
if (log_type > EQEmuLogSys::MaxLogID){
return;
}
va_list args;
va_start(args, message);
std::string output_message = vStringFormat(message.c_str(), args);
va_end(args);
EQEmuLogSys::ProcessConsoleMessage(log_type, 0, output_message);
EQEmuLogSys::ProcessGMSay(log_type, 0, output_message);
EQEmuLogSys::ProcessLogWrite(log_type, 0, output_message);
}
void EQEmuLogSys::SetCurrentTimeStamp(char* time_stamp){
time_t raw_time;
struct tm * time_info;

View File

@ -31,17 +31,6 @@ public:
EQEmuLogSys();
~EQEmuLogSys();
enum LogType {
Status = 0, /* This must stay the first entry in this list */
Normal, /* Normal Logs */
Error, /* Error Logs */
Debug, /* Debug Logs */
Quest, /* Quest Logs */
Commands, /* Issued Commands */
Crash, /* Crash Logs */
MaxLogID /* Max, used in functions to get the max log ID */
};
enum DebugLevel {
General = 0, /* 0 - Low-Level general debugging, useful info on single line */
Moderate, /* 1 - Informational based, used in functions, when particular things load */