diff --git a/client_files/export/main.cpp b/client_files/export/main.cpp index 633fecc79..f950907ac 100644 --- a/client_files/export/main.cpp +++ b/client_files/export/main.cpp @@ -57,6 +57,7 @@ int main(int argc, char **argv) { /* Register Log System and Settings */ database.LoadLogSysSettings(Log.log_settings); + Log.StartFileLogs(); ExportSpells(&database); ExportSkillCaps(&database); diff --git a/client_files/import/main.cpp b/client_files/import/main.cpp index 8522227a7..67b0c7140 100644 --- a/client_files/import/main.cpp +++ b/client_files/import/main.cpp @@ -54,6 +54,7 @@ int main(int argc, char **argv) { } database.LoadLogSysSettings(Log.log_settings); + Log.StartFileLogs(); ImportSpells(&database); ImportSkillCaps(&database); diff --git a/common/eqemu_logsys.h b/common/eqemu_logsys.h index 26cffdc57..223b87610 100644 --- a/common/eqemu_logsys.h +++ b/common/eqemu_logsys.h @@ -131,7 +131,7 @@ public: void MakeDirectory(std::string directory_name); void Out(Logs::DebugLevel debug_level, uint16 log_category, std::string message, ...); void SetCurrentTimeStamp(char* time_stamp); - void StartFileLogs(const std::string log_name); + void StartFileLogs(const std::string log_name = ""); struct LogSettings{ uint8 log_to_file; diff --git a/queryserv/queryserv.cpp b/queryserv/queryserv.cpp index f285f8410..b724276e6 100644 --- a/queryserv/queryserv.cpp +++ b/queryserv/queryserv.cpp @@ -89,6 +89,7 @@ int main() { /* Register Log System and Settings */ database.LoadLogSysSettings(Log.log_settings); + Log.StartFileLogs(); if (signal(SIGINT, CatchSignal) == SIG_ERR) { Log.Out(Logs::General, Logs::QS_Server, "Could not set signal handler"); diff --git a/shared_memory/main.cpp b/shared_memory/main.cpp index da385e6ba..bddf03b06 100644 --- a/shared_memory/main.cpp +++ b/shared_memory/main.cpp @@ -58,8 +58,8 @@ int main(int argc, char **argv) { } /* Register Log System and Settings */ - Log.LoadLogSettingsDefaults(); database.LoadLogSysSettings(Log.log_settings); + Log.StartFileLogs(); bool load_all = true; bool load_items = false; diff --git a/ucs/ucs.cpp b/ucs/ucs.cpp index e67c9e445..e00754370 100644 --- a/ucs/ucs.cpp +++ b/ucs/ucs.cpp @@ -99,6 +99,7 @@ int main() { /* Register Log System and Settings */ database.LoadLogSysSettings(Log.log_settings); + Log.StartFileLogs(); char tmp[64]; diff --git a/world/net.cpp b/world/net.cpp index 97ac46353..fae6efd1b 100644 --- a/world/net.cpp +++ b/world/net.cpp @@ -185,6 +185,7 @@ int main(int argc, char** argv) { /* Register Log System and Settings */ database.LoadLogSysSettings(Log.log_settings); + Log.StartFileLogs(); if (argc >= 2) { char tmp[2]; diff --git a/zone/net.cpp b/zone/net.cpp index 9f46bd384..7d25c1ff7 100644 --- a/zone/net.cpp +++ b/zone/net.cpp @@ -169,7 +169,7 @@ int main(int argc, char** argv) { /* Register Log System and Settings */ Log.OnLogHookCallBackZone(&Zone::GMSayHookCallBackProcess); database.LoadLogSysSettings(Log.log_settings); - Log.StartFileLogs(""); + Log.StartFileLogs(); /* Guilds */ guild_mgr.SetDatabase(&database);