diff --git a/common/ruletypes.h b/common/ruletypes.h index c5a4bb562..aa9a83c72 100644 --- a/common/ruletypes.h +++ b/common/ruletypes.h @@ -596,6 +596,12 @@ RULE_CATEGORY( Client ) RULE_BOOL( Client, UseLiveFactionMessage, false) // Allows players to see faction adjustments like Live RULE_CATEGORY_END() +RULE_CATEGORY(Logging) +RULE_BOOL(Logging, ConsoleLogCommands, false) /* Turns on or off console logs */ +RULE_BOOL(Logging, LogFileCommands, false) +RULE_CATEGORY_END() + + #undef RULE_CATEGORY #undef RULE_INT #undef RULE_REAL diff --git a/zone/command.cpp b/zone/command.cpp index a0b9ae642..0a6a1b551 100644 --- a/zone/command.cpp +++ b/zone/command.cpp @@ -50,6 +50,7 @@ #include "../common/rulesys.h" #include "../common/serverinfo.h" #include "../common/string_util.h" +#include "../common/eqemu_logsys.h" #include "client_logs.h" #include "command.h" @@ -444,9 +445,7 @@ int command_init(void) { if ((itr=command_settings.find(cur->first))!=command_settings.end()) { cur->second->access = itr->second; -#if EQDEBUG >=5 - LogFile->write(EQEmuLog::Debug, "command_init(): - Command '%s' set to access level %d." , cur->first.c_str(), itr->second); -#endif + logger.Log(EQEmuLogSys::Commands, "command_init(): - Command '%s' set to access level %d.", cur->first.c_str(), itr->second); } else {