mirror of
https://github.com/EQEmu/Server.git
synced 2026-01-05 12:33:51 +00:00
Add RULE_CATEGORY(Logging)
RULE_BOOL(Logging, ConsoleLogCommands, false) /* Turns on or off console logs */ RULE_BOOL(Logging, LogFileCommands, false) RULE_CATEGORY_END()
This commit is contained in:
parent
01ca81a177
commit
b8ed29c600
@ -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
|
||||
|
||||
@ -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
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user