Replaced the LogWorker thread with Boost ASIO

This commit is contained in:
leak
2014-07-08 20:55:25 +02:00
parent c24bf2f028
commit d1594998f8
7 changed files with 31 additions and 115 deletions

View File

@@ -145,6 +145,12 @@ extern int main(int argc, char** argv)
return 1;
}
if (sConfigMgr->GetBoolDefault("Log.Async.Enable", false))
{
// If logs are supposed to be handled async then we need to pass the io_service into the Log singleton
Log::instance(&_ioService);
}
TC_LOG_INFO("server.worldserver", "%s (worldserver-daemon)", _FULLVERSION);
TC_LOG_INFO("server.worldserver", "<Ctrl-C> to stop.\n");
TC_LOG_INFO("server.worldserver", " ______ __");