*Add new console command "server set logfilelevel".

--HG--
branch : trunk
This commit is contained in:
megamage
2009-04-09 13:48:01 -05:00
parent 5a71d93bd2
commit 7e275145e2
3 changed files with 16 additions and 0 deletions

View File

@@ -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)
{