diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Framework/Servers/BaseOpenSimServer.cs | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/OpenSim/Framework/Servers/BaseOpenSimServer.cs b/OpenSim/Framework/Servers/BaseOpenSimServer.cs index 9560171..5e898ef 100644 --- a/OpenSim/Framework/Servers/BaseOpenSimServer.cs +++ b/OpenSim/Framework/Servers/BaseOpenSimServer.cs | |||
@@ -102,10 +102,6 @@ namespace OpenSim.Framework.Servers | |||
102 | "shutdown", | 102 | "shutdown", |
103 | "Quit the application", HandleQuit); | 103 | "Quit the application", HandleQuit); |
104 | 104 | ||
105 | m_console.Commands.AddCommand("General", false, "set log level", | ||
106 | "set log level <level>", | ||
107 | "Set the console logging level", HandleLogLevel); | ||
108 | |||
109 | m_console.Commands.AddCommand("General", false, "show threads", | 105 | m_console.Commands.AddCommand("General", false, "show threads", |
110 | "show threads", | 106 | "show threads", |
111 | "Show thread status", HandleShow); | 107 | "Show thread status", HandleShow); |
@@ -254,33 +250,6 @@ namespace OpenSim.Framework.Servers | |||
254 | Shutdown(); | 250 | Shutdown(); |
255 | } | 251 | } |
256 | 252 | ||
257 | private void HandleLogLevel(string module, string[] cmd) | ||
258 | { | ||
259 | if (null == m_consoleAppender) | ||
260 | { | ||
261 | Notice("No appender named Console found (see the log4net config file for this executable)!"); | ||
262 | return; | ||
263 | } | ||
264 | |||
265 | if (cmd.Length > 3) | ||
266 | { | ||
267 | string rawLevel = cmd[3]; | ||
268 | |||
269 | ILoggerRepository repository = LogManager.GetRepository(); | ||
270 | Level consoleLevel = repository.LevelMap[rawLevel]; | ||
271 | |||
272 | if (consoleLevel != null) | ||
273 | m_consoleAppender.Threshold = consoleLevel; | ||
274 | else | ||
275 | Notice( | ||
276 | String.Format( | ||
277 | "{0} is not a valid logging level. Valid logging levels are ALL, DEBUG, INFO, WARN, ERROR, FATAL, OFF", | ||
278 | rawLevel)); | ||
279 | } | ||
280 | |||
281 | Notice(String.Format("Console log level is {0}", m_consoleAppender.Threshold)); | ||
282 | } | ||
283 | |||
284 | /// <summary> | 253 | /// <summary> |
285 | /// Show help information | 254 | /// Show help information |
286 | /// </summary> | 255 | /// </summary> |