Add log aliases to make logging much easier to use (All FMT driven)

This commit is contained in:
Akkadius
2019-09-01 20:47:26 -05:00
parent db5e511af3
commit d3803045bc
41 changed files with 982 additions and 536 deletions
+6 -6
View File
@@ -52,16 +52,16 @@ int main() {
set_exception_handler();
Timer LFGuildExpireTimer(60000);
Log(Logs::General, Logs::QS_Server, "Starting EQEmu QueryServ.");
Log(Logs::General, Logs::QSServer, "Starting EQEmu QueryServ.");
if (!queryservconfig::LoadConfig()) {
Log(Logs::General, Logs::QS_Server, "Loading server configuration failed.");
Log(Logs::General, Logs::QSServer, "Loading server configuration failed.");
return 1;
}
Config = queryservconfig::get();
WorldShortName = Config->ShortName;
Log(Logs::General, Logs::QS_Server, "Connecting to MySQL...");
Log(Logs::General, Logs::QSServer, "Connecting to MySQL...");
/* MySQL Connection */
if (!database.Connect(
@@ -70,7 +70,7 @@ int main() {
Config->QSDatabasePassword.c_str(),
Config->QSDatabaseDB.c_str(),
Config->QSDatabasePort)) {
Log(Logs::General, Logs::QS_Server, "Cannot continue without a database connection.");
Log(Logs::General, Logs::QSServer, "Cannot continue without a database connection.");
return 1;
}
@@ -79,11 +79,11 @@ int main() {
LogSys.StartFileLogs();
if (signal(SIGINT, CatchSignal) == SIG_ERR) {
Log(Logs::General, Logs::QS_Server, "Could not set signal handler");
Log(Logs::General, Logs::QSServer, "Could not set signal handler");
return 1;
}
if (signal(SIGTERM, CatchSignal) == SIG_ERR) {
Log(Logs::General, Logs::QS_Server, "Could not set signal handler");
Log(Logs::General, Logs::QSServer, "Could not set signal handler");
return 1;
}