Core/Log: Implement log masks for debug log level, to allow selective debug output. Update your worldserver.conf.

This commit is contained in:
Machiavelli
2011-02-20 20:16:34 +01:00
parent 45db1591a4
commit e07e20ffca
99 changed files with 1046 additions and 1092 deletions
+5 -5
View File
@@ -1611,7 +1611,7 @@ void World::SetInitialWorldSettings()
sSmartScriptMgr->LoadSmartAIFromDB();
///- Initialize game time and timers
sLog->outDebug("DEBUG:: Initialize game time and timers");
sLog->outString("Initialize game time and timers");
m_gameTime = time(NULL);
m_startTime=m_gameTime;
@@ -1648,7 +1648,7 @@ void World::SetInitialWorldSettings()
mail_timer = ((((localtime(&m_gameTime)->tm_hour + 20) % 24)* HOUR * IN_MILLISECONDS) / m_timers[WUPDATE_AUCTIONS].GetInterval());
//1440
mail_timer_expires = ((DAY * IN_MILLISECONDS) / (m_timers[WUPDATE_AUCTIONS].GetInterval()));
sLog->outDebug("Mail timer set to: " UI64FMTD ", mail return is called every " UI64FMTD " minutes", uint64(mail_timer), uint64(mail_timer_expires));
sLog->outDetail("Mail timer set to: " UI64FMTD ", mail return is called every " UI64FMTD " minutes", uint64(mail_timer), uint64(mail_timer_expires));
///- Initilize static helper structures
AIRegistry::Initialize();
@@ -2521,7 +2521,7 @@ void World::ProcessCliCommands()
CliCommandHolder* command;
while (cliCmdQueue.next(command))
{
sLog->outDebug("CLI command under processing...");
sLog->outDetail("CLI command under processing...");
zprint = command->m_print;
callbackArg = command->m_callbackArg;
CliHandler handler(callbackArg, zprint);
@@ -2562,9 +2562,9 @@ void World::SendAutoBroadcast()
WorldPacket data(SMSG_NOTIFICATION, (msg.size()+1));
data << msg;
sWorld->SendGlobalMessage(&data);
}
sLog->outDebug("AutoBroadcast: '%s'",msg.c_str());
sLog->outDetail("AutoBroadcast: '%s'",msg.c_str());
}
void World::UpdateRealmCharCount(uint32 accountId)