mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 01:11:29 +00:00
Add 'Quests' Category
This commit is contained in:
parent
bfd73e5b96
commit
ef4847555a
@ -226,7 +226,7 @@ bool EQEmuLog::writePVA(LogIDs id, const char *prefix, const char *fmt, va_list
|
||||
if (id == EQEmuLog::LogIDs::Crash){ SetConsoleTextAttribute(console_handle, ConsoleColor::Colors::LightRed); }
|
||||
#endif
|
||||
|
||||
fprintf(stdout, "[%s] %s", LogNames[id], prefix);
|
||||
fprintf(stdout, "[%s] %s", LogNames[id], prefix);
|
||||
vfprintf(stdout, fmt, argptr);
|
||||
|
||||
#ifdef _WINDOWS
|
||||
|
||||
@ -74,6 +74,7 @@ public:
|
||||
Client_Server_Packet,
|
||||
Aggro,
|
||||
Attack,
|
||||
Quests,
|
||||
MaxCategoryID /* Don't Remove this*/
|
||||
};
|
||||
|
||||
@ -139,6 +140,7 @@ static const char* LogCategoryName[EQEmuLogSys::LogCategory::MaxCategoryID] = {
|
||||
"Client_Server_Packet",
|
||||
"Aggro",
|
||||
"Attack",
|
||||
"Quests"
|
||||
};
|
||||
|
||||
#endif
|
||||
@ -98,6 +98,8 @@ XS(XS_EQEmuIO_PRINT)
|
||||
for(i = 0; *cur != '\0'; i++, cur++) {
|
||||
if(*cur == '\n') {
|
||||
LogFile->writebuf(EQEmuLog::Quest, str + pos, 1, len);
|
||||
//logger.DebugCategory(EQEmuLogSys::Detail, EQEmuLogSys::Quests, str);
|
||||
//std::cout << str << "LOLOL\n";
|
||||
len = 0;
|
||||
pos = i+1;
|
||||
} else {
|
||||
@ -106,6 +108,7 @@ XS(XS_EQEmuIO_PRINT)
|
||||
}
|
||||
if(len > 0) {
|
||||
LogFile->writebuf(EQEmuLog::Quest, str + pos, 1, len);
|
||||
// logger.DebugCategory(EQEmuLogSys::Detail, EQEmuLogSys::Quest, str);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user