From 7e275145e27e11dfd81403106d34b209b7c2aa36 Mon Sep 17 00:00:00 2001 From: megamage Date: Thu, 9 Apr 2009 13:48:01 -0500 Subject: *Add new console command "server set logfilelevel". --HG-- branch : trunk --- src/trinitycore/CliRunnable.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/trinitycore') 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 @@ -252,6 +252,20 @@ bool ChatHandler::HandleAccountCreateCommand(const char* args) return true; } +/// 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) { -- cgit v1.2.3