diff options
author | megamage <none@none> | 2009-04-09 13:48:01 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-04-09 13:48:01 -0500 |
commit | 7e275145e27e11dfd81403106d34b209b7c2aa36 (patch) | |
tree | 1cf93cd9700d306998b1fb1a45cb674facc4cce3 /src/trinitycore/CliRunnable.cpp | |
parent | 5a71d93bd24880866890f4b5193db60d4aff0c96 (diff) |
*Add new console command "server set logfilelevel".
--HG--
branch : trunk
Diffstat (limited to 'src/trinitycore/CliRunnable.cpp')
-rw-r--r-- | src/trinitycore/CliRunnable.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/trinitycore/CliRunnable.cpp b/src/trinitycore/CliRunnable.cpp index 0f37535c8f4..91f37cd1b48 100644 --- a/src/trinitycore/CliRunnable.cpp +++ b/src/trinitycore/CliRunnable.cpp @@ -253,6 +253,20 @@ bool ChatHandler::HandleAccountCreateCommand(const char* args) } /// Set the level of logging +bool ChatHandler::HandleServerSetLogFileLevelCommand(const char *args) +{ + if(!*args) + return false; + + char *NewLevel = strtok((char*)args, " "); + if (!NewLevel) + return false; + + sLog.SetLogFileLevel(NewLevel); + return true; +} + +/// Set the level of logging bool ChatHandler::HandleServerSetLogLevelCommand(const char *args) { if(!*args) |