aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Servers
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2011-01-21 23:59:55 +0000
committerJustin Clark-Casey (justincc)2011-01-21 23:59:55 +0000
commitcb14e1d2720fdee0c77280d7c397c02116c278ca (patch)
tree0c899fb54c3e26423dffa1377eba426f1bd79b4c /OpenSim/Framework/Servers
parentremove some mono compiler warnings (diff)
downloadopensim-SC_OLD-cb14e1d2720fdee0c77280d7c397c02116c278ca.zip
opensim-SC_OLD-cb14e1d2720fdee0c77280d7c397c02116c278ca.tar.gz
opensim-SC_OLD-cb14e1d2720fdee0c77280d7c397c02116c278ca.tar.bz2
opensim-SC_OLD-cb14e1d2720fdee0c77280d7c397c02116c278ca.tar.xz
Update the "config get <section> <key>" command to "config get [<section>] [<key>]"
The config get command shows a current config value on the console. Now, if <key> is omitted then all the values for the given section are printed. If <section> is ommitted then all sections and all keys are printed. Current config can also be dumped to a file using "config save <path>". This can be handy for resolving or eliminating config issues
Diffstat (limited to 'OpenSim/Framework/Servers')
-rw-r--r--OpenSim/Framework/Servers/BaseOpenSimServer.cs14
1 files changed, 14 insertions, 0 deletions
diff --git a/OpenSim/Framework/Servers/BaseOpenSimServer.cs b/OpenSim/Framework/Servers/BaseOpenSimServer.cs
index 147fbd5..b28ad69 100644
--- a/OpenSim/Framework/Servers/BaseOpenSimServer.cs
+++ b/OpenSim/Framework/Servers/BaseOpenSimServer.cs
@@ -411,6 +411,7 @@ namespace OpenSim.Framework.Servers
411 /// That is something that cannot be determined within this class. So 411 /// That is something that cannot be determined within this class. So
412 /// all attempts to use the console MUST be verified. 412 /// all attempts to use the console MUST be verified.
413 /// </summary> 413 /// </summary>
414 /// <param name="msg"></param>
414 protected void Notice(string msg) 415 protected void Notice(string msg)
415 { 416 {
416 if (m_console != null) 417 if (m_console != null)
@@ -418,6 +419,19 @@ namespace OpenSim.Framework.Servers
418 m_console.Output(msg); 419 m_console.Output(msg);
419 } 420 }
420 } 421 }
422
423 /// <summary>
424 /// Console output is only possible if a console has been established.
425 /// That is something that cannot be determined within this class. So
426 /// all attempts to use the console MUST be verified.
427 /// </summary>
428 /// <param name="format"></param>
429 /// <param name="components"></param>
430 protected void Notice(string format, params string[] components)
431 {
432 if (m_console != null)
433 m_console.OutputFormat(format, components);
434 }
421 435
422 /// <summary> 436 /// <summary>
423 /// Enhance the version string with extra information if it's available. 437 /// Enhance the version string with extra information if it's available.