aboutsummaryrefslogtreecommitdiff
path: root/src/trinitycore/CliRunnable.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-04-09 13:48:01 -0500
committermegamage <none@none>2009-04-09 13:48:01 -0500
commit7e275145e27e11dfd81403106d34b209b7c2aa36 (patch)
tree1cf93cd9700d306998b1fb1a45cb674facc4cce3 /src/trinitycore/CliRunnable.cpp
parent5a71d93bd24880866890f4b5193db60d4aff0c96 (diff)
*Add new console command "server set logfilelevel".
--HG-- branch : trunk
Diffstat (limited to 'src/trinitycore/CliRunnable.cpp')
-rw-r--r--src/trinitycore/CliRunnable.cpp14
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)