diff --git a/common/eqemu_logsys.cpp b/common/eqemu_logsys.cpp index 0aadf0cdf..ace8692f5 100644 --- a/common/eqemu_logsys.cpp +++ b/common/eqemu_logsys.cpp @@ -89,6 +89,12 @@ void EQEmuLogSys::LoadLogSettingsDefaults() log_settings[i].log_to_file = 0; log_settings[i].log_to_gmsay = 0; } + + log_settings[Logs::World_Server].log_to_console = 1; + log_settings[Logs::Zone_Server].log_to_console = 1; + log_settings[Logs::QS_Server].log_to_console = 1; + log_settings[Logs::UCS_Server].log_to_console = 1; + log_settings_loaded = true; } diff --git a/ucs/ucs.cpp b/ucs/ucs.cpp index fd9688def..86462aefe 100644 --- a/ucs/ucs.cpp +++ b/ucs/ucs.cpp @@ -78,20 +78,20 @@ int main() { Timer InterserverTimer(INTERSERVER_TIMER); // does auto-reconnect - Log.Out(Logs::Detail, Logs::UCS_Server, "Starting EQEmu Universal Chat Server."); + Log.Out(Logs::General, Logs::UCS_Server, "Starting EQEmu Universal Chat Server."); if (!ucsconfig::LoadConfig()) { - Log.Out(Logs::Detail, Logs::UCS_Server, "Loading server configuration failed."); + Log.Out(Logs::General, Logs::UCS_Server, "Loading server configuration failed."); return 1; } - Config = ucsconfig::get(); + Config = ucsconfig::get(); WorldShortName = Config->ShortName; - Log.Out(Logs::Detail, Logs::UCS_Server, "Connecting to MySQL..."); + Log.Out(Logs::General, Logs::UCS_Server, "Connecting to MySQL..."); if (!database.Connect( Config->DatabaseHost.c_str(), @@ -99,22 +99,22 @@ int main() { Config->DatabasePassword.c_str(), Config->DatabaseDB.c_str(), Config->DatabasePort)) { - Log.Out(Logs::Detail, Logs::World_Server, "Cannot continue without a database connection."); + Log.Out(Logs::General, Logs::World_Server, "Cannot continue without a database connection."); return 1; } char tmp[64]; if (database.GetVariable("RuleSet", tmp, sizeof(tmp)-1)) { - Log.Out(Logs::Detail, Logs::World_Server, "Loading rule set '%s'", tmp); + Log.Out(Logs::General, Logs::World_Server, "Loading rule set '%s'", tmp); if(!RuleManager::Instance()->LoadRules(&database, tmp)) { - Log.Out(Logs::Detail, Logs::UCS_Server, "Failed to load ruleset '%s', falling back to defaults.", tmp); + Log.Out(Logs::General, Logs::UCS_Server, "Failed to load ruleset '%s', falling back to defaults.", tmp); } } else { if(!RuleManager::Instance()->LoadRules(&database, "default")) { - Log.Out(Logs::Detail, Logs::UCS_Server, "No rule set configured, using default rules"); + Log.Out(Logs::General, Logs::UCS_Server, "No rule set configured, using default rules"); } else { - Log.Out(Logs::Detail, Logs::UCS_Server, "Loaded default rule set 'default'", tmp); + Log.Out(Logs::General, Logs::UCS_Server, "Loaded default rule set 'default'", tmp); } } @@ -122,7 +122,7 @@ int main() { if(Config->ChatPort != Config->MailPort) { - Log.Out(Logs::Detail, Logs::UCS_Server, "MailPort and CharPort must be the same in eqemu_config.xml for UCS."); + Log.Out(Logs::General, Logs::UCS_Server, "MailPort and CharPort must be the same in eqemu_config.xml for UCS."); exit(1); } @@ -133,11 +133,11 @@ int main() { database.LoadChatChannels(); if (signal(SIGINT, CatchSignal) == SIG_ERR) { - Log.Out(Logs::Detail, Logs::UCS_Server, "Could not set signal handler"); + Log.Out(Logs::General, Logs::UCS_Server, "Could not set signal handler"); return 1; } if (signal(SIGTERM, CatchSignal) == SIG_ERR) { - Log.Out(Logs::Detail, Logs::UCS_Server, "Could not set signal handler"); + Log.Out(Logs::General, Logs::UCS_Server, "Could not set signal handler"); return 1; }