Core/Logging: Refactored appender creation to allow using logging without mysql dependency in tools (future task)

Conflicts:
	src/server/bnetserver/Main.cpp
	src/server/worldserver/Main.cpp
This commit is contained in:
Shauren
2015-08-16 00:12:18 +02:00
committed by DDuarte
parent c1e3fdc826
commit cdbd563157
12 changed files with 123 additions and 97 deletions

View File

@@ -30,6 +30,7 @@
#include "DatabaseEnv.h"
#include "DatabaseLoader.h"
#include "Log.h"
#include "AppenderDB.h"
#include "ProcessPriority.h"
#include "RealmList.h"
#include "SystemConfig.h"
@@ -99,6 +100,9 @@ int main(int argc, char** argv)
return 1;
}
sLog->RegisterAppender<AppenderDB>();
sLog->Initialize(nullptr);
TC_LOG_INFO("server.authserver", "%s (authserver)", _FULLVERSION);
TC_LOG_INFO("server.authserver", "<Ctrl-C> to stop.\n");
TC_LOG_INFO("server.authserver", "Using configuration file %s.", configFile.c_str());