aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region')
-rwxr-xr-x[-rw-r--r--]OpenSim/Region/Application/OpenSim.cs10
-rwxr-xr-x[-rw-r--r--]OpenSim/Region/Application/OpenSimBase.cs20
-rwxr-xr-x[-rw-r--r--]OpenSim/Region/ClientStack/Linden/Caps/EventQueue/EventQueueGetModule.cs11
-rwxr-xr-x[-rw-r--r--]OpenSim/Region/ClientStack/Linden/UDP/LLUDPServerCommands.cs82
-rwxr-xr-x[-rw-r--r--]OpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs20
-rwxr-xr-x[-rw-r--r--]OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs12
-rwxr-xr-x[-rw-r--r--]OpenSim/Region/CoreModules/Avatar/AvatarFactory/AvatarFactoryModule.cs2
-rwxr-xr-x[-rw-r--r--]OpenSim/Region/CoreModules/Avatar/Commands/UserCommandsModule.cs9
-rwxr-xr-x[-rw-r--r--]OpenSim/Region/CoreModules/Framework/Monitoring/MonitorModule.cs6
-rwxr-xr-xOpenSim/Region/CoreModules/Framework/UserManagement/UserManagementModule.cs4
-rwxr-xr-x[-rw-r--r--]OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs8
-rwxr-xr-x[-rw-r--r--]OpenSim/Region/CoreModules/World/Objects/Commands/ObjectCommandsModule.cs56
-rwxr-xr-x[-rw-r--r--]OpenSim/Region/CoreModules/World/Region/RegionCommandsModule.cs17
-rwxr-xr-x[-rw-r--r--]OpenSim/Region/CoreModules/World/Region/RestartModule.cs4
-rwxr-xr-x[-rw-r--r--]OpenSim/Region/CoreModules/World/Terrain/TerrainModule.cs15
-rwxr-xr-x[-rw-r--r--]OpenSim/Region/CoreModules/World/Wind/WindModule.cs20
-rwxr-xr-x[-rw-r--r--]OpenSim/Region/Framework/Interfaces/IAvatarFactoryModule.cs2
-rwxr-xr-x[-rw-r--r--]OpenSim/Region/OptionalModules/Agent/TextureSender/J2KDecoderCommandModule.cs13
-rwxr-xr-x[-rw-r--r--]OpenSim/Region/OptionalModules/Asset/AssetInfoModule.cs20
-rwxr-xr-x[-rw-r--r--]OpenSim/Region/OptionalModules/Avatar/Animations/AnimationsCommandModule.cs2
-rwxr-xr-x[-rw-r--r--]OpenSim/Region/OptionalModules/Avatar/Appearance/AppearanceInfoModule.cs37
-rwxr-xr-x[-rw-r--r--]OpenSim/Region/OptionalModules/Avatar/Friends/FriendsCommandsModule.cs15
-rwxr-xr-x[-rw-r--r--]OpenSim/Region/OptionalModules/Avatar/SitStand/SitStandCommandsModule.cs8
-rwxr-xr-x[-rw-r--r--]OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/GroupsMessagingModule.cs2
-rwxr-xr-x[-rw-r--r--]OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/GroupsModule.cs2
-rwxr-xr-xOpenSim/Region/OptionalModules/PhysicsParameters/PhysicsParameters.cs4
-rwxr-xr-x[-rw-r--r--]OpenSim/Region/OptionalModules/Scripting/JsonStore/JsonStoreCommands.cs2
-rwxr-xr-x[-rw-r--r--]OpenSim/Region/OptionalModules/Scripting/RegionReadyModule/RegionReadyModule.cs4
-rwxr-xr-x[-rw-r--r--]OpenSim/Region/OptionalModules/World/AutoBackup/AutoBackupModule.cs6
-rwxr-xr-x[-rw-r--r--]OpenSim/Region/OptionalModules/World/SceneCommands/SceneCommandsModule.cs4
-rwxr-xr-x[-rw-r--r--]OpenSim/Region/ScriptEngine/XEngine/ScriptEngineConsoleCommands.cs4
-rwxr-xr-xOpenSim/Region/ScriptEngine/XEngine/XEngine.cs24
32 files changed, 239 insertions, 206 deletions
diff --git a/OpenSim/Region/Application/OpenSim.cs b/OpenSim/Region/Application/OpenSim.cs
index ee4ddf4..6a56a36 100644..100755
--- a/OpenSim/Region/Application/OpenSim.cs
+++ b/OpenSim/Region/Application/OpenSim.cs
@@ -782,8 +782,8 @@ namespace OpenSim
782 Scene existingScene; 782 Scene existingScene;
783 if (SceneManager.TryGetScene(regInfo.RegionID, out existingScene)) 783 if (SceneManager.TryGetScene(regInfo.RegionID, out existingScene))
784 { 784 {
785 MainConsole.Instance.OutputFormat( 785 MainConsole.Instance.Output(
786 "ERROR: Cannot create region {0} with ID {1}, this ID is already assigned to region {2}", 786 "ERROR: Cannot create region {0} with ID {1}, this ID is already assigned to region {2}", null,
787 regInfo.RegionName, regInfo.RegionID, existingScene.RegionInfo.RegionName); 787 regInfo.RegionName, regInfo.RegionID, existingScene.RegionInfo.RegionName);
788 788
789 return; 789 return;
@@ -980,7 +980,7 @@ namespace OpenSim
980 SceneManager.ForEachSelectedScene( 980 SceneManager.ForEachSelectedScene(
981 scene => 981 scene =>
982 { 982 {
983 MainConsole.Instance.OutputFormat("Loaded region modules in {0} are:", scene.Name); 983 MainConsole.Instance.Output("Loaded region modules in {0} are:", null, scene.Name);
984 984
985 List<IRegionModuleBase> sharedModules = new List<IRegionModuleBase>(); 985 List<IRegionModuleBase> sharedModules = new List<IRegionModuleBase>();
986 List<IRegionModuleBase> nonSharedModules = new List<IRegionModuleBase>(); 986 List<IRegionModuleBase> nonSharedModules = new List<IRegionModuleBase>();
@@ -994,10 +994,10 @@ namespace OpenSim
994 } 994 }
995 995
996 foreach (IRegionModuleBase module in sharedModules.OrderBy(m => m.Name)) 996 foreach (IRegionModuleBase module in sharedModules.OrderBy(m => m.Name))
997 MainConsole.Instance.OutputFormat("New Region Module (Shared): {0}", module.Name); 997 MainConsole.Instance.Output("New Region Module (Shared): {0}", null, module.Name);
998 998
999 foreach (IRegionModuleBase module in nonSharedModules.OrderBy(m => m.Name)) 999 foreach (IRegionModuleBase module in nonSharedModules.OrderBy(m => m.Name))
1000 MainConsole.Instance.OutputFormat("New Region Module (Non-Shared): {0}", module.Name); 1000 MainConsole.Instance.Output("New Region Module (Non-Shared): {0}", null, module.Name);
1001 } 1001 }
1002 ); 1002 );
1003 1003
diff --git a/OpenSim/Region/Application/OpenSimBase.cs b/OpenSim/Region/Application/OpenSimBase.cs
index 7a221c4..ed0f496 100644..100755
--- a/OpenSim/Region/Application/OpenSimBase.cs
+++ b/OpenSim/Region/Application/OpenSimBase.cs
@@ -593,14 +593,14 @@ namespace OpenSim
593 estateOwnerPassword = Config.Configs[ESTATE_SECTION_NAME].GetString("DefaultEstateOwnerPassword", null); 593 estateOwnerPassword = Config.Configs[ESTATE_SECTION_NAME].GetString("DefaultEstateOwnerPassword", null);
594 } 594 }
595 595
596 MainConsole.Instance.OutputFormat("Estate {0} has no owner set.", regionInfo.EstateSettings.EstateName); 596 MainConsole.Instance.Output("Estate {0} has no owner set.", null, regionInfo.EstateSettings.EstateName);
597 List<char> excluded = new List<char>(new char[1]{' '}); 597 List<char> excluded = new List<char>(new char[1]{' '});
598 598
599 599
600 if (estateOwnerFirstName == null || estateOwnerLastName == null) 600 if (estateOwnerFirstName == null || estateOwnerLastName == null)
601 { 601 {
602 estateOwnerFirstName = MainConsole.Instance.CmdPrompt("Estate owner first name", "Test", excluded); 602 estateOwnerFirstName = MainConsole.Instance.Prompt("Estate owner first name", "Test", excluded);
603 estateOwnerLastName = MainConsole.Instance.CmdPrompt("Estate owner last name", "User", excluded); 603 estateOwnerLastName = MainConsole.Instance.Prompt("Estate owner last name", "User", excluded);
604 } 604 }
605 605
606 UserAccount account 606 UserAccount account
@@ -624,13 +624,13 @@ namespace OpenSim
624 if (scene.UserAccountService is UserAccountService) 624 if (scene.UserAccountService is UserAccountService)
625 { 625 {
626 if (estateOwnerPassword == null) 626 if (estateOwnerPassword == null)
627 estateOwnerPassword = MainConsole.Instance.PasswdPrompt("Password"); 627 estateOwnerPassword = MainConsole.Instance.Prompt("Password", null, null, false);
628 628
629 if (estateOwnerEMail == null) 629 if (estateOwnerEMail == null)
630 estateOwnerEMail = MainConsole.Instance.CmdPrompt("Email"); 630 estateOwnerEMail = MainConsole.Instance.Prompt("Email");
631 631
632 if (rawEstateOwnerUuid == null) 632 if (rawEstateOwnerUuid == null)
633 rawEstateOwnerUuid = MainConsole.Instance.CmdPrompt("User ID", UUID.Random().ToString()); 633 rawEstateOwnerUuid = MainConsole.Instance.Prompt("User ID", UUID.Random().ToString());
634 634
635 UUID estateOwnerUuid = UUID.Zero; 635 UUID estateOwnerUuid = UUID.Zero;
636 if (!UUID.TryParse(rawEstateOwnerUuid, out estateOwnerUuid)) 636 if (!UUID.TryParse(rawEstateOwnerUuid, out estateOwnerUuid))
@@ -999,11 +999,11 @@ namespace OpenSim
999 if (!string.IsNullOrEmpty(estateName)) 999 if (!string.IsNullOrEmpty(estateName))
1000 newName = estateName; 1000 newName = estateName;
1001 else 1001 else
1002 newName = MainConsole.Instance.CmdPrompt("New estate name", regInfo.EstateSettings.EstateName); 1002 newName = MainConsole.Instance.Prompt("New estate name", regInfo.EstateSettings.EstateName);
1003 1003
1004 if (estatesByName.ContainsKey(newName)) 1004 if (estatesByName.ContainsKey(newName))
1005 { 1005 {
1006 MainConsole.Instance.OutputFormat("An estate named {0} already exists. Please try again.", newName); 1006 MainConsole.Instance.Output("An estate named {0} already exists. Please try again.", null, newName);
1007 return false; 1007 return false;
1008 } 1008 }
1009 1009
@@ -1086,7 +1086,7 @@ namespace OpenSim
1086 else 1086 else
1087 { 1087 {
1088 string response 1088 string response
1089 = MainConsole.Instance.CmdPrompt( 1089 = MainConsole.Instance.Prompt(
1090 string.Format( 1090 string.Format(
1091 "Do you wish to join region {0} to an existing estate (yes/no)?", regInfo.RegionName), 1091 "Do you wish to join region {0} to an existing estate (yes/no)?", regInfo.RegionName),
1092 "yes", 1092 "yes",
@@ -1103,7 +1103,7 @@ namespace OpenSim
1103 { 1103 {
1104 string[] estateNames = estatesByName.Keys.ToArray(); 1104 string[] estateNames = estatesByName.Keys.ToArray();
1105 response 1105 response
1106 = MainConsole.Instance.CmdPrompt( 1106 = MainConsole.Instance.Prompt(
1107 string.Format( 1107 string.Format(
1108 "Name of estate to join. Existing estate names are ({0})", 1108 "Name of estate to join. Existing estate names are ({0})",
1109 string.Join(", ", estateNames)), 1109 string.Join(", ", estateNames)),
diff --git a/OpenSim/Region/ClientStack/Linden/Caps/EventQueue/EventQueueGetModule.cs b/OpenSim/Region/ClientStack/Linden/Caps/EventQueue/EventQueueGetModule.cs
index 4e451b5..8ac348e 100644..100755
--- a/OpenSim/Region/ClientStack/Linden/Caps/EventQueue/EventQueueGetModule.cs
+++ b/OpenSim/Region/ClientStack/Linden/Caps/EventQueue/EventQueueGetModule.cs
@@ -150,26 +150,27 @@ namespace OpenSim.Region.ClientStack.Linden
150 150
151 if (!(args.Length == 3 && int.TryParse(args[2], out debugLevel))) 151 if (!(args.Length == 3 && int.TryParse(args[2], out debugLevel)))
152 { 152 {
153 MainConsole.Instance.OutputFormat("Usage: debug eq [0|1|2]"); 153 MainConsole.Instance.Output("Usage: debug eq [0|1|2]");
154 } 154 }
155 else 155 else
156 { 156 {
157 DebugLevel = debugLevel; 157 DebugLevel = debugLevel;
158 MainConsole.Instance.OutputFormat( 158 MainConsole.Instance.Output(
159 "Set event queue debug level to {0} in {1}", DebugLevel, m_scene.RegionInfo.RegionName); 159 "Set event queue debug level to {0} in {1}", null, DebugLevel, m_scene.RegionInfo.RegionName);
160 } 160 }
161 } 161 }
162 162
163 protected void HandleShowEq(string module, string[] args) 163 protected void HandleShowEq(string module, string[] args)
164 { 164 {
165 MainConsole.Instance.OutputFormat("For scene {0}", m_scene.Name); 165 MainConsole.Instance.Output("For scene {0}", null, m_scene.Name);
166 166
167 lock (queues) 167 lock (queues)
168 { 168 {
169 foreach (KeyValuePair<UUID, Queue<OSD>> kvp in queues) 169 foreach (KeyValuePair<UUID, Queue<OSD>> kvp in queues)
170 { 170 {
171 MainConsole.Instance.OutputFormat( 171 MainConsole.Instance.Output(
172 "For agent {0} there are {1} messages queued for send.", 172 "For agent {0} there are {1} messages queued for send.",
173 null,
173 kvp.Key, kvp.Value.Count); 174 kvp.Key, kvp.Value.Count);
174 } 175 }
175 } 176 }
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServerCommands.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServerCommands.cs
index a4d7eb9..be3c4b7 100644..100755
--- a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServerCommands.cs
+++ b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServerCommands.cs
@@ -222,7 +222,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
222 if (SceneManager.Instance.CurrentScene != null && SceneManager.Instance.CurrentScene != m_udpServer.Scene) 222 if (SceneManager.Instance.CurrentScene != null && SceneManager.Instance.CurrentScene != m_udpServer.Scene)
223 return; 223 return;
224 224
225 m_console.OutputFormat("Throttles for {0}", m_udpServer.Scene.Name); 225 m_console.Output("Throttles for {0}", null, m_udpServer.Scene.Name);
226 ConsoleDisplayList cdl = new ConsoleDisplayList(); 226 ConsoleDisplayList cdl = new ConsoleDisplayList();
227 cdl.AddRow("Adaptive throttles", m_udpServer.ThrottleRates.AdaptiveThrottlesEnabled); 227 cdl.AddRow("Adaptive throttles", m_udpServer.ThrottleRates.AdaptiveThrottlesEnabled);
228 228
@@ -238,7 +238,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
238 238
239 m_console.Output(cdl.ToString()); 239 m_console.Output(cdl.ToString());
240 240
241 m_console.OutputFormat("{0}\n", GetServerThrottlesReport(m_udpServer)); 241 m_console.Output("{0}\n", null, GetServerThrottlesReport(m_udpServer));
242 } 242 }
243 243
244 private string GetServerThrottlesReport(LLUDPServer udpServer) 244 private string GetServerThrottlesReport(LLUDPServer udpServer)
@@ -297,7 +297,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
297 297
298 if (args.Length != 7) 298 if (args.Length != 7)
299 { 299 {
300 MainConsole.Instance.OutputFormat("Usage: debug lludp data out <true|false> <avatar-first-name> <avatar-last-name>"); 300 MainConsole.Instance.Output("Usage: debug lludp data out <true|false> <avatar-first-name> <avatar-last-name>");
301 return; 301 return;
302 } 302 }
303 303
@@ -312,8 +312,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP
312 { 312 {
313 if (sp.Firstname == firstName && sp.Lastname == lastName) 313 if (sp.Firstname == firstName && sp.Lastname == lastName)
314 { 314 {
315 MainConsole.Instance.OutputFormat( 315 MainConsole.Instance.Output(
316 "Data debug for {0} ({1}) set to {2} in {3}", 316 "Data debug for {0} ({1}) set to {2} in {3}",
317 null,
317 sp.Name, sp.IsChildAgent ? "child" : "root", level, m_udpServer.Scene.Name); 318 sp.Name, sp.IsChildAgent ? "child" : "root", level, m_udpServer.Scene.Name);
318 319
319 ((LLClientView)sp.ControllingClient).UDPClient.DebugDataOutLevel = level; 320 ((LLClientView)sp.ControllingClient).UDPClient.DebugDataOutLevel = level;
@@ -331,7 +332,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
331 332
332 if (!all && !one) 333 if (!all && !one)
333 { 334 {
334 MainConsole.Instance.OutputFormat( 335 MainConsole.Instance.Output(
335 "Usage: debug lludp throttles log <level> [<avatar-first-name> <avatar-last-name>]"); 336 "Usage: debug lludp throttles log <level> [<avatar-first-name> <avatar-last-name>]");
336 return; 337 return;
337 } 338 }
@@ -353,8 +354,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP
353 { 354 {
354 if (all || (sp.Firstname == firstName && sp.Lastname == lastName)) 355 if (all || (sp.Firstname == firstName && sp.Lastname == lastName))
355 { 356 {
356 MainConsole.Instance.OutputFormat( 357 MainConsole.Instance.Output(
357 "Throttle log level for {0} ({1}) set to {2} in {3}", 358 "Throttle log level for {0} ({1}) set to {2} in {3}",
359 null,
358 sp.Name, sp.IsChildAgent ? "child" : "root", level, m_udpServer.Scene.Name); 360 sp.Name, sp.IsChildAgent ? "child" : "root", level, m_udpServer.Scene.Name);
359 361
360 ((LLClientView)sp.ControllingClient).UDPClient.ThrottleDebugLevel = level; 362 ((LLClientView)sp.ControllingClient).UDPClient.ThrottleDebugLevel = level;
@@ -372,7 +374,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
372 374
373 if (!all && !one) 375 if (!all && !one)
374 { 376 {
375 MainConsole.Instance.OutputFormat( 377 MainConsole.Instance.Output(
376 "Usage: debug lludp throttles set <param> <value> [<avatar-first-name> <avatar-last-name>]"); 378 "Usage: debug lludp throttles set <param> <value> [<avatar-first-name> <avatar-last-name>]");
377 return; 379 return;
378 } 380 }
@@ -399,8 +401,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP
399 { 401 {
400 if (all || (sp.Firstname == firstName && sp.Lastname == lastName)) 402 if (all || (sp.Firstname == firstName && sp.Lastname == lastName))
401 { 403 {
402 MainConsole.Instance.OutputFormat( 404 MainConsole.Instance.Output(
403 "Setting param {0} to {1} for {2} ({3}) in {4}", 405 "Setting param {0} to {1} for {2} ({3}) in {4}",
406 null,
404 param, newValue, sp.Name, sp.IsChildAgent ? "child" : "root", m_udpServer.Scene.Name); 407 param, newValue, sp.Name, sp.IsChildAgent ? "child" : "root", m_udpServer.Scene.Name);
405 408
406 LLUDPClient udpClient = ((LLClientView)sp.ControllingClient).UDPClient; 409 LLUDPClient udpClient = ((LLClientView)sp.ControllingClient).UDPClient;
@@ -422,8 +425,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP
422 { 425 {
423 if (all || (sp.Firstname == firstName && sp.Lastname == lastName)) 426 if (all || (sp.Firstname == firstName && sp.Lastname == lastName))
424 { 427 {
425 MainConsole.Instance.OutputFormat( 428 MainConsole.Instance.Output(
426 "Setting param {0} to {1} for {2} ({3}) in {4}", 429 "Setting param {0} to {1} for {2} ({3}) in {4}",
430 null,
427 param, newValue, sp.Name, sp.IsChildAgent ? "child" : "root", m_udpServer.Scene.Name); 431 param, newValue, sp.Name, sp.IsChildAgent ? "child" : "root", m_udpServer.Scene.Name);
428 432
429 LLUDPClient udpClient = ((LLClientView)sp.ControllingClient).UDPClient; 433 LLUDPClient udpClient = ((LLClientView)sp.ControllingClient).UDPClient;
@@ -443,8 +447,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP
443 { 447 {
444 if (all || (sp.Firstname == firstName && sp.Lastname == lastName)) 448 if (all || (sp.Firstname == firstName && sp.Lastname == lastName))
445 { 449 {
446 MainConsole.Instance.OutputFormat( 450 MainConsole.Instance.Output(
447 "Setting param {0} to {1} for {2} ({3}) in {4}", 451 "Setting param {0} to {1} for {2} ({3}) in {4}",
452 null,
448 param, newValue, sp.Name, sp.IsChildAgent ? "child" : "root", m_udpServer.Scene.Name); 453 param, newValue, sp.Name, sp.IsChildAgent ? "child" : "root", m_udpServer.Scene.Name);
449 454
450 LLUDPClient udpClient = ((LLClientView)sp.ControllingClient).UDPClient; 455 LLUDPClient udpClient = ((LLClientView)sp.ControllingClient).UDPClient;
@@ -464,7 +469,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
464 469
465 if (!all && !one) 470 if (!all && !one)
466 { 471 {
467 MainConsole.Instance.OutputFormat( 472 MainConsole.Instance.Output(
468 "Usage: debug lludp throttles get [<avatar-first-name> <avatar-last-name>]"); 473 "Usage: debug lludp throttles get [<avatar-first-name> <avatar-last-name>]");
469 return; 474 return;
470 } 475 }
@@ -482,8 +487,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP
482 { 487 {
483 if (all || (sp.Firstname == firstName && sp.Lastname == lastName)) 488 if (all || (sp.Firstname == firstName && sp.Lastname == lastName))
484 { 489 {
485 m_console.OutputFormat( 490 m_console.Output(
486 "Status for {0} ({1}) in {2}", 491 "Status for {0} ({1}) in {2}",
492 null,
487 sp.Name, sp.IsChildAgent ? "child" : "root", m_udpServer.Scene.Name); 493 sp.Name, sp.IsChildAgent ? "child" : "root", m_udpServer.Scene.Name);
488 494
489 LLUDPClient udpClient = ((LLClientView)sp.ControllingClient).UDPClient; 495 LLUDPClient udpClient = ((LLClientView)sp.ControllingClient).UDPClient;
@@ -504,7 +510,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
504 if (SceneManager.Instance.CurrentScene != null && SceneManager.Instance.CurrentScene != m_udpServer.Scene) 510 if (SceneManager.Instance.CurrentScene != null && SceneManager.Instance.CurrentScene != m_udpServer.Scene)
505 return; 511 return;
506 512
507 m_console.OutputFormat("Debug settings for {0}", m_udpServer.Scene.Name); 513 m_console.Output("Debug settings for {0}", null, m_udpServer.Scene.Name);
508 ConsoleDisplayList cdl = new ConsoleDisplayList(); 514 ConsoleDisplayList cdl = new ConsoleDisplayList();
509 515
510 long maxSceneDripRate = (long)m_udpServer.Throttle.MaxDripRate; 516 long maxSceneDripRate = (long)m_udpServer.Throttle.MaxDripRate;
@@ -527,7 +533,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
527 533
528 if (args.Length != 5) 534 if (args.Length != 5)
529 { 535 {
530 MainConsole.Instance.OutputFormat("Usage: debug lludp set <param> <value>"); 536 MainConsole.Instance.Output("Usage: debug lludp set <param> <value>");
531 return; 537 return;
532 } 538 }
533 539
@@ -555,7 +561,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
555 return; 561 return;
556 } 562 }
557 563
558 m_console.OutputFormat("{0} set to {1} in {2}", param, rawValue, m_udpServer.Scene.Name); 564 m_console.Output("{0} set to {1} in {2}", null, param, rawValue, m_udpServer.Scene.Name);
559 } 565 }
560 566
561/* not in use, nothing to set/get from lludp 567/* not in use, nothing to set/get from lludp
@@ -632,7 +638,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
632 } 638 }
633 else 639 else
634 { 640 {
635 MainConsole.Instance.OutputFormat("ERROR: Cannot specify a user name when setting default/all logging level"); 641 MainConsole.Instance.Output("ERROR: Cannot specify a user name when setting default/all logging level");
636 return; 642 return;
637 } 643 }
638 } 644 }
@@ -646,16 +652,18 @@ namespace OpenSim.Region.ClientStack.LindenUDP
646 { 652 {
647 m_udpServer.DefaultClientPacketDebugLevel = newDebug; 653 m_udpServer.DefaultClientPacketDebugLevel = newDebug;
648 654
649 MainConsole.Instance.OutputFormat( 655 MainConsole.Instance.Output(
650 "Packet debug for {0} clients set to {1} in {2}", 656 "Packet debug for {0} clients set to {1} in {2}",
657 null,
651 (setAll ? "all" : "future"), m_udpServer.DefaultClientPacketDebugLevel, m_udpServer.Scene.Name); 658 (setAll ? "all" : "future"), m_udpServer.DefaultClientPacketDebugLevel, m_udpServer.Scene.Name);
652 659
653 if (setAll) 660 if (setAll)
654 { 661 {
655 m_udpServer.Scene.ForEachScenePresence(sp => 662 m_udpServer.Scene.ForEachScenePresence(sp =>
656 { 663 {
657 MainConsole.Instance.OutputFormat( 664 MainConsole.Instance.Output(
658 "Packet debug for {0} ({1}) set to {2} in {3}", 665 "Packet debug for {0} ({1}) set to {2} in {3}",
666 null,
659 sp.Name, sp.IsChildAgent ? "child" : "root", newDebug, m_udpServer.Scene.Name); 667 sp.Name, sp.IsChildAgent ? "child" : "root", newDebug, m_udpServer.Scene.Name);
660 668
661 sp.ControllingClient.DebugPacketLevel = newDebug; 669 sp.ControllingClient.DebugPacketLevel = newDebug;
@@ -668,8 +676,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP
668 { 676 {
669 if (name == null || sp.Name == name) 677 if (name == null || sp.Name == name)
670 { 678 {
671 MainConsole.Instance.OutputFormat( 679 MainConsole.Instance.Output(
672 "Packet debug for {0} ({1}) set to {2} in {3}", 680 "Packet debug for {0} ({1}) set to {2} in {3}",
681 null,
673 sp.Name, sp.IsChildAgent ? "child" : "root", newDebug, m_udpServer.Scene.Name); 682 sp.Name, sp.IsChildAgent ? "child" : "root", newDebug, m_udpServer.Scene.Name);
674 683
675 sp.ControllingClient.DebugPacketLevel = newDebug; 684 sp.ControllingClient.DebugPacketLevel = newDebug;
@@ -701,8 +710,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP
701 710
702 if (subCommand == "add") 711 if (subCommand == "add")
703 { 712 {
704 MainConsole.Instance.OutputFormat( 713 MainConsole.Instance.Output(
705 "Adding packet {0} to {1} drop list for all connections in {2}", 714 "Adding packet {0} to {1} drop list for all connections in {2}",
715 null,
706 direction, packetName, m_udpServer.Scene.Name); 716 direction, packetName, m_udpServer.Scene.Name);
707 717
708 m_udpServer.Scene.ForEachScenePresence( 718 m_udpServer.Scene.ForEachScenePresence(
@@ -719,8 +729,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP
719 } 729 }
720 else if (subCommand == "remove") 730 else if (subCommand == "remove")
721 { 731 {
722 MainConsole.Instance.OutputFormat( 732 MainConsole.Instance.Output(
723 "Removing packet {0} from {1} drop list for all connections in {2}", 733 "Removing packet {0} from {1} drop list for all connections in {2}",
734 null,
724 direction, packetName, m_udpServer.Scene.Name); 735 direction, packetName, m_udpServer.Scene.Name);
725 736
726 m_udpServer.Scene.ForEachScenePresence( 737 m_udpServer.Scene.ForEachScenePresence(
@@ -784,8 +795,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP
784 795
785 m_udpServer.DiscardInboundAgentUpdates = !m_udpServer.DiscardInboundAgentUpdates; 796 m_udpServer.DiscardInboundAgentUpdates = !m_udpServer.DiscardInboundAgentUpdates;
786 797
787 MainConsole.Instance.OutputFormat( 798 MainConsole.Instance.Output(
788 "Discard AgentUpdates now {0} for {1}", m_udpServer.DiscardInboundAgentUpdates, m_udpServer.Scene.Name); 799 "Discard AgentUpdates now {0} for {1}", null, m_udpServer.DiscardInboundAgentUpdates, m_udpServer.Scene.Name);
789 } 800 }
790 801
791 private void HandleStatusCommand(string module, string[] args) 802 private void HandleStatusCommand(string module, string[] args)
@@ -793,14 +804,14 @@ namespace OpenSim.Region.ClientStack.LindenUDP
793 if (SceneManager.Instance.CurrentScene != null && SceneManager.Instance.CurrentScene != m_udpServer.Scene) 804 if (SceneManager.Instance.CurrentScene != null && SceneManager.Instance.CurrentScene != m_udpServer.Scene)
794 return; 805 return;
795 806
796 MainConsole.Instance.OutputFormat( 807 MainConsole.Instance.Output(
797 "IN LLUDP packet processing for {0} is {1}", m_udpServer.Scene.Name, m_udpServer.IsRunningInbound ? "enabled" : "disabled"); 808 "IN LLUDP packet processing for {0} is {1}", null, m_udpServer.Scene.Name, m_udpServer.IsRunningInbound ? "enabled" : "disabled");
798 809
799 MainConsole.Instance.OutputFormat( 810 MainConsole.Instance.Output(
800 "OUT LLUDP packet processing for {0} is {1}", m_udpServer.Scene.Name, m_udpServer.IsRunningOutbound ? "enabled" : "disabled"); 811 "OUT LLUDP packet processing for {0} is {1}", null, m_udpServer.Scene.Name, m_udpServer.IsRunningOutbound ? "enabled" : "disabled");
801 812
802 MainConsole.Instance.OutputFormat( 813 MainConsole.Instance.Output(
803 "Packet debug level for new clients is {0}", m_udpServer.DefaultClientPacketDebugLevel); 814 "Packet debug level for new clients is {0}", null, m_udpServer.DefaultClientPacketDebugLevel);
804 } 815 }
805 816
806 private void HandleOqreCommand(string module, string[] args) 817 private void HandleOqreCommand(string module, string[] args)
@@ -819,24 +830,25 @@ namespace OpenSim.Region.ClientStack.LindenUDP
819 if (subCommand == "stop") 830 if (subCommand == "stop")
820 { 831 {
821 m_udpServer.OqrEngine.Stop(); 832 m_udpServer.OqrEngine.Stop();
822 MainConsole.Instance.OutputFormat("Stopped OQRE for {0}", m_udpServer.Scene.Name); 833 MainConsole.Instance.Output("Stopped OQRE for {0}", null, m_udpServer.Scene.Name);
823 } 834 }
824 else if (subCommand == "start") 835 else if (subCommand == "start")
825 { 836 {
826 m_udpServer.OqrEngine.Start(); 837 m_udpServer.OqrEngine.Start();
827 MainConsole.Instance.OutputFormat("Started OQRE for {0}", m_udpServer.Scene.Name); 838 MainConsole.Instance.Output("Started OQRE for {0}", null, m_udpServer.Scene.Name);
828 } 839 }
829 else if (subCommand == "status") 840 else if (subCommand == "status")
830 { 841 {
831 MainConsole.Instance.OutputFormat("OQRE in {0}", m_udpServer.Scene.Name); 842 MainConsole.Instance.Output("OQRE in {0}", null, m_udpServer.Scene.Name);
832 MainConsole.Instance.OutputFormat("Running: {0}", m_udpServer.OqrEngine.IsRunning); 843 MainConsole.Instance.Output("Running: {0}", null, m_udpServer.OqrEngine.IsRunning);
833 MainConsole.Instance.OutputFormat( 844 MainConsole.Instance.Output(
834 "Requests waiting: {0}", 845 "Requests waiting: {0}",
846 null,
835 m_udpServer.OqrEngine.IsRunning ? m_udpServer.OqrEngine.JobsWaiting.ToString() : "n/a"); 847 m_udpServer.OqrEngine.IsRunning ? m_udpServer.OqrEngine.JobsWaiting.ToString() : "n/a");
836 } 848 }
837 else 849 else
838 { 850 {
839 MainConsole.Instance.OutputFormat("Unrecognized OQRE subcommand {0}", subCommand); 851 MainConsole.Instance.Output("Unrecognized OQRE subcommand {0}", null, subCommand);
840 } 852 }
841 } 853 }
842 } 854 }
diff --git a/OpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs b/OpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs
index d1cb5e8..b42759d 100644..100755
--- a/OpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs
+++ b/OpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs
@@ -1075,14 +1075,14 @@ namespace OpenSim.Region.CoreModules.Asset
1075 { 1075 {
1076 case "status": 1076 case "status":
1077 if (m_MemoryCacheEnabled) 1077 if (m_MemoryCacheEnabled)
1078 con.OutputFormat("Memory Cache: {0} assets", m_MemoryCache.Count); 1078 con.Output("Memory Cache: {0} assets", null, m_MemoryCache.Count);
1079 else 1079 else
1080 con.OutputFormat("Memory cache disabled"); 1080 con.Output("Memory cache disabled");
1081 1081
1082 if (m_FileCacheEnabled) 1082 if (m_FileCacheEnabled)
1083 { 1083 {
1084 int fileCount = GetFileCacheCount(m_CacheDirectory); 1084 int fileCount = GetFileCacheCount(m_CacheDirectory);
1085 con.OutputFormat("File Cache: {0} assets", fileCount); 1085 con.Output("File Cache: {0} assets", null, fileCount);
1086 } 1086 }
1087 else 1087 else
1088 { 1088 {
@@ -1099,7 +1099,7 @@ namespace OpenSim.Region.CoreModules.Asset
1099 { 1099 {
1100 string RegionID = s.Remove(0,s.IndexOf("_")).Replace(".fac",""); 1100 string RegionID = s.Remove(0,s.IndexOf("_")).Replace(".fac","");
1101 DateTime RegionDeepScanTMStamp = File.GetLastWriteTime(s); 1101 DateTime RegionDeepScanTMStamp = File.GetLastWriteTime(s);
1102 con.OutputFormat("Region: {0}, {1}", RegionID, RegionDeepScanTMStamp.ToString("MM/dd/yyyy hh:mm:ss")); 1102 con.Output("Region: {0}, {1}", null, RegionID, RegionDeepScanTMStamp.ToString("MM/dd/yyyy hh:mm:ss"));
1103 } 1103 }
1104 } 1104 }
1105 1105
@@ -1160,7 +1160,7 @@ namespace OpenSim.Region.CoreModules.Asset
1160 { 1160 {
1161 if(m_cleanupRunning) 1161 if(m_cleanupRunning)
1162 { 1162 {
1163 con.OutputFormat("Flotsam assets check already running"); 1163 con.Output("Flotsam assets check already running");
1164 return; 1164 return;
1165 } 1165 }
1166 m_cleanupRunning = true; 1166 m_cleanupRunning = true;
@@ -1192,7 +1192,7 @@ namespace OpenSim.Region.CoreModules.Asset
1192 } 1192 }
1193 m_cleanupRunning = false; 1193 m_cleanupRunning = false;
1194 } 1194 }
1195 con.OutputFormat("Completed check with {0} assets.", assetReferenceTotal); 1195 con.Output("Completed check with {0} assets.", null, assetReferenceTotal);
1196 }, null, "TouchAllSceneAssets", false); 1196 }, null, "TouchAllSceneAssets", false);
1197 1197
1198 break; 1198 break;
@@ -1200,7 +1200,7 @@ namespace OpenSim.Region.CoreModules.Asset
1200 case "expire": 1200 case "expire":
1201 if (cmdparams.Length < 3) 1201 if (cmdparams.Length < 3)
1202 { 1202 {
1203 con.OutputFormat("Invalid parameters for Expire, please specify a valid date & time", cmd); 1203 con.Output("Invalid parameters for Expire, please specify a valid date & time");
1204 break; 1204 break;
1205 } 1205 }
1206 1206
@@ -1218,18 +1218,18 @@ namespace OpenSim.Region.CoreModules.Asset
1218 1218
1219 if (!DateTime.TryParse(s_expirationDate, out expirationDate)) 1219 if (!DateTime.TryParse(s_expirationDate, out expirationDate))
1220 { 1220 {
1221 con.OutputFormat("{0} is not a valid date & time", cmd); 1221 con.Output("{0} is not a valid date & time", null, cmd);
1222 break; 1222 break;
1223 } 1223 }
1224 1224
1225 if (m_FileCacheEnabled) 1225 if (m_FileCacheEnabled)
1226 CleanExpiredFiles(m_CacheDirectory, expirationDate); 1226 CleanExpiredFiles(m_CacheDirectory, expirationDate);
1227 else 1227 else
1228 con.OutputFormat("File cache not active, not clearing."); 1228 con.Output("File cache not active, not clearing.");
1229 1229
1230 break; 1230 break;
1231 default: 1231 default:
1232 con.OutputFormat("Unknown command {0}", cmd); 1232 con.Output("Unknown command {0}", null, cmd);
1233 break; 1233 break;
1234 } 1234 }
1235 } 1235 }
diff --git a/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs b/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs
index 5205576..864fc79 100644..100755
--- a/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs
+++ b/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs
@@ -159,27 +159,27 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments
159 159
160 if (!(args.Length == 4 && int.TryParse(args[3], out debugLevel))) 160 if (!(args.Length == 4 && int.TryParse(args[3], out debugLevel)))
161 { 161 {
162 MainConsole.Instance.OutputFormat("Usage: debug attachments log [0|1]"); 162 MainConsole.Instance.Output("Usage: debug attachments log [0|1]");
163 } 163 }
164 else 164 else
165 { 165 {
166 DebugLevel = debugLevel; 166 DebugLevel = debugLevel;
167 MainConsole.Instance.OutputFormat( 167 MainConsole.Instance.Output(
168 "Set attachments debug level to {0} in {1}", DebugLevel, m_scene.Name); 168 "Set attachments debug level to {0} in {1}", null, DebugLevel, m_scene.Name);
169 } 169 }
170 } 170 }
171 171
172 private void HandleDebugAttachmentsStatus(string module, string[] args) 172 private void HandleDebugAttachmentsStatus(string module, string[] args)
173 { 173 {
174 MainConsole.Instance.OutputFormat("Settings for {0}", m_scene.Name); 174 MainConsole.Instance.Output("Settings for {0}", null, m_scene.Name);
175 MainConsole.Instance.OutputFormat("Debug logging level: {0}", DebugLevel); 175 MainConsole.Instance.Output("Debug logging level: {0}", null, DebugLevel);
176 } 176 }
177 177
178 protected void HandleShowAttachmentsCommand(string module, string[] cmd) 178 protected void HandleShowAttachmentsCommand(string module, string[] cmd)
179 { 179 {
180 if (cmd.Length != 2 && cmd.Length < 4) 180 if (cmd.Length != 2 && cmd.Length < 4)
181 { 181 {
182 MainConsole.Instance.OutputFormat("Usage: attachments show [<first-name> <last-name>]"); 182 MainConsole.Instance.Output("Usage: attachments show [<first-name> <last-name>]");
183 return; 183 return;
184 } 184 }
185 185
diff --git a/OpenSim/Region/CoreModules/Avatar/AvatarFactory/AvatarFactoryModule.cs b/OpenSim/Region/CoreModules/Avatar/AvatarFactory/AvatarFactoryModule.cs
index 1a0b7ba..777d020 100644..100755
--- a/OpenSim/Region/CoreModules/Avatar/AvatarFactory/AvatarFactoryModule.cs
+++ b/OpenSim/Region/CoreModules/Avatar/AvatarFactory/AvatarFactoryModule.cs
@@ -1370,7 +1370,7 @@ namespace OpenSim.Region.CoreModules.Avatar.AvatarFactory
1370 rawTextureID += " (uploaded)"; 1370 rawTextureID += " (uploaded)";
1371 } 1371 }
1372 1372
1373 outputAction(BAKED_TEXTURES_REPORT_FORMAT, bt, rawTextureID); 1373 outputAction(BAKED_TEXTURES_REPORT_FORMAT, null, bt, rawTextureID);
1374 } 1374 }
1375 1375
1376 bool bakedTextureValid = m_scene.AvatarFactory.ValidateBakedTextureCache(sp); 1376 bool bakedTextureValid = m_scene.AvatarFactory.ValidateBakedTextureCache(sp);
diff --git a/OpenSim/Region/CoreModules/Avatar/Commands/UserCommandsModule.cs b/OpenSim/Region/CoreModules/Avatar/Commands/UserCommandsModule.cs
index cf65c47..d98f11a 100644..100755
--- a/OpenSim/Region/CoreModules/Avatar/Commands/UserCommandsModule.cs
+++ b/OpenSim/Region/CoreModules/Avatar/Commands/UserCommandsModule.cs
@@ -135,7 +135,7 @@ namespace OpenSim.Region.CoreModules.Avatars.Commands
135 { 135 {
136 if (cmd.Length < 5) 136 if (cmd.Length < 5)
137 { 137 {
138 MainConsole.Instance.OutputFormat("Usage: " + TeleportUserCommandSyntax); 138 MainConsole.Instance.Output("Usage: " + TeleportUserCommandSyntax);
139 return; 139 return;
140 } 140 }
141 141
@@ -147,7 +147,7 @@ namespace OpenSim.Region.CoreModules.Avatars.Commands
147 147
148 if (user == null) 148 if (user == null)
149 { 149 {
150 MainConsole.Instance.OutputFormat("No user found with name {0} {1}", firstName, lastName); 150 MainConsole.Instance.Output("No user found with name {0} {1}", null, firstName, lastName);
151 return; 151 return;
152 } 152 }
153 153
@@ -161,7 +161,7 @@ namespace OpenSim.Region.CoreModules.Avatars.Commands
161 161
162 if (!m.Success) 162 if (!m.Success)
163 { 163 {
164 MainConsole.Instance.OutputFormat("Invalid destination {0}", rawDestination); 164 MainConsole.Instance.Output("Invalid destination {0}", null, rawDestination);
165 return; 165 return;
166 } 166 }
167 } 167 }
@@ -169,8 +169,9 @@ namespace OpenSim.Region.CoreModules.Avatars.Commands
169 string regionName 169 string regionName
170 = m.Groups["regionName"].Success ? m.Groups["regionName"].Value : user.Scene.RegionInfo.RegionName; 170 = m.Groups["regionName"].Success ? m.Groups["regionName"].Value : user.Scene.RegionInfo.RegionName;
171 171
172 MainConsole.Instance.OutputFormat( 172 MainConsole.Instance.Output(
173 "Teleporting {0} to {1},{2},{3} in {4}", 173 "Teleporting {0} to {1},{2},{3} in {4}",
174 null,
174 user.Name, 175 user.Name,
175 m.Groups["x"], m.Groups["y"], m.Groups["z"], 176 m.Groups["x"], m.Groups["y"], m.Groups["z"],
176 regionName); 177 regionName);
diff --git a/OpenSim/Region/CoreModules/Framework/Monitoring/MonitorModule.cs b/OpenSim/Region/CoreModules/Framework/Monitoring/MonitorModule.cs
index fb3d31c..da103b5 100644..100755
--- a/OpenSim/Region/CoreModules/Framework/Monitoring/MonitorModule.cs
+++ b/OpenSim/Region/CoreModules/Framework/Monitoring/MonitorModule.cs
@@ -316,15 +316,17 @@ namespace OpenSim.Region.CoreModules.Framework.Monitoring
316 { 316 {
317 foreach (IMonitor monitor in m_staticMonitors) 317 foreach (IMonitor monitor in m_staticMonitors)
318 { 318 {
319 MainConsole.Instance.OutputFormat( 319 MainConsole.Instance.Output(
320 "[MONITOR MODULE]: {0} reports {1} = {2}", 320 "[MONITOR MODULE]: {0} reports {1} = {2}",
321 null,
321 m_scene.RegionInfo.RegionName, monitor.GetFriendlyName(), monitor.GetFriendlyValue()); 322 m_scene.RegionInfo.RegionName, monitor.GetFriendlyName(), monitor.GetFriendlyValue());
322 } 323 }
323 324
324 foreach (KeyValuePair<string, float> tuple in m_scene.StatsReporter.GetExtraSimStats()) 325 foreach (KeyValuePair<string, float> tuple in m_scene.StatsReporter.GetExtraSimStats())
325 { 326 {
326 MainConsole.Instance.OutputFormat( 327 MainConsole.Instance.Output(
327 "[MONITOR MODULE]: {0} reports {1} = {2}", 328 "[MONITOR MODULE]: {0} reports {1} = {2}",
329 null,
328 m_scene.RegionInfo.RegionName, tuple.Key, tuple.Value); 330 m_scene.RegionInfo.RegionName, tuple.Key, tuple.Value);
329 } 331 }
330 } 332 }
diff --git a/OpenSim/Region/CoreModules/Framework/UserManagement/UserManagementModule.cs b/OpenSim/Region/CoreModules/Framework/UserManagement/UserManagementModule.cs
index 3baf03d..cc2e611 100755
--- a/OpenSim/Region/CoreModules/Framework/UserManagement/UserManagementModule.cs
+++ b/OpenSim/Region/CoreModules/Framework/UserManagement/UserManagementModule.cs
@@ -1028,7 +1028,7 @@ namespace OpenSim.Region.CoreModules.Framework.UserManagement
1028 { 1028 {
1029 if (cmd.Length < 3) 1029 if (cmd.Length < 3)
1030 { 1030 {
1031 MainConsole.Instance.OutputFormat("Usage: show name <uuid>"); 1031 MainConsole.Instance.Output("Usage: show name <uuid>");
1032 return; 1032 return;
1033 } 1033 }
1034 1034
@@ -1040,7 +1040,7 @@ namespace OpenSim.Region.CoreModules.Framework.UserManagement
1040 1040
1041 if(!GetUser(userId, out ud)) 1041 if(!GetUser(userId, out ud))
1042 { 1042 {
1043 MainConsole.Instance.OutputFormat("No name known for user with id {0}", userId); 1043 MainConsole.Instance.Output("No name known for user with id {0}", null, userId);
1044 return; 1044 return;
1045 } 1045 }
1046 1046
diff --git a/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs b/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs
index b67cad7..6985549 100644..100755
--- a/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs
+++ b/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs
@@ -2528,7 +2528,7 @@ namespace OpenSim.Region.CoreModules.World.Land
2528 if (!(MainConsole.Instance.ConsoleScene == null || MainConsole.Instance.ConsoleScene == m_scene)) 2528 if (!(MainConsole.Instance.ConsoleScene == null || MainConsole.Instance.ConsoleScene == m_scene))
2529 return; 2529 return;
2530 2530
2531 string response = MainConsole.Instance.CmdPrompt( 2531 string response = MainConsole.Instance.Prompt(
2532 string.Format( 2532 string.Format(
2533 "Are you sure that you want to clear all land parcels from {0} (y or n)", m_scene.Name), 2533 "Are you sure that you want to clear all land parcels from {0} (y or n)", m_scene.Name),
2534 "n"); 2534 "n");
@@ -2536,11 +2536,11 @@ namespace OpenSim.Region.CoreModules.World.Land
2536 if (response.ToLower() == "y") 2536 if (response.ToLower() == "y")
2537 { 2537 {
2538 Clear(true); 2538 Clear(true);
2539 MainConsole.Instance.OutputFormat("Cleared all parcels from {0}", m_scene.Name); 2539 MainConsole.Instance.Output("Cleared all parcels from {0}", null, m_scene.Name);
2540 } 2540 }
2541 else 2541 else
2542 { 2542 {
2543 MainConsole.Instance.OutputFormat("Aborting clear of all parcels from {0}", m_scene.Name); 2543 MainConsole.Instance.Output("Aborting clear of all parcels from {0}", null, m_scene.Name);
2544 } 2544 }
2545 } 2545 }
2546 2546
@@ -2568,7 +2568,7 @@ namespace OpenSim.Region.CoreModules.World.Land
2568 { 2568 {
2569 if (!m_landList.TryGetValue(landLocalId, out lo)) 2569 if (!m_landList.TryGetValue(landLocalId, out lo))
2570 { 2570 {
2571 MainConsole.Instance.OutputFormat("No parcel found with local ID {0}", landLocalId); 2571 MainConsole.Instance.Output("No parcel found with local ID {0}", null, landLocalId);
2572 return; 2572 return;
2573 } 2573 }
2574 } 2574 }
diff --git a/OpenSim/Region/CoreModules/World/Objects/Commands/ObjectCommandsModule.cs b/OpenSim/Region/CoreModules/World/Objects/Commands/ObjectCommandsModule.cs
index 3d786dd..e118b66 100644..100755
--- a/OpenSim/Region/CoreModules/World/Objects/Commands/ObjectCommandsModule.cs
+++ b/OpenSim/Region/CoreModules/World/Objects/Commands/ObjectCommandsModule.cs
@@ -235,7 +235,7 @@ namespace OpenSim.Region.CoreModules.World.Objects.Commands
235 235
236 sb.AppendFormat("{0} object(s) found in {1}\n", sceneObjects.Count, m_scene.Name); 236 sb.AppendFormat("{0} object(s) found in {1}\n", sceneObjects.Count, m_scene.Name);
237 237
238 m_console.OutputFormat(sb.ToString()); 238 m_console.Output(sb.ToString());
239 } 239 }
240 240
241 private void OutputSopsToConsole(Predicate<SceneObjectPart> searchPredicate, bool showFull) 241 private void OutputSopsToConsole(Predicate<SceneObjectPart> searchPredicate, bool showFull)
@@ -255,7 +255,7 @@ namespace OpenSim.Region.CoreModules.World.Objects.Commands
255 255
256 sb.AppendFormat("{0} parts found in {1}\n", parts.Count, m_scene.Name); 256 sb.AppendFormat("{0} parts found in {1}\n", parts.Count, m_scene.Name);
257 257
258 m_console.OutputFormat(sb.ToString()); 258 m_console.Output(sb.ToString());
259 } 259 }
260 260
261 private void HandleShowObjectById(string module, string[] cmdparams) 261 private void HandleShowObjectById(string module, string[] cmdparams)
@@ -270,7 +270,7 @@ namespace OpenSim.Region.CoreModules.World.Objects.Commands
270 270
271 if (mainParams.Count < 4) 271 if (mainParams.Count < 4)
272 { 272 {
273 m_console.OutputFormat("Usage: show object uuid <uuid>"); 273 m_console.Output("Usage: show object uuid <uuid>");
274 return; 274 return;
275 } 275 }
276 276
@@ -295,7 +295,7 @@ namespace OpenSim.Region.CoreModules.World.Objects.Commands
295 StringBuilder sb = new StringBuilder(); 295 StringBuilder sb = new StringBuilder();
296 AddSceneObjectReport(sb, so, showFull); 296 AddSceneObjectReport(sb, so, showFull);
297 297
298 m_console.OutputFormat(sb.ToString()); 298 m_console.Output(sb.ToString());
299 } 299 }
300 300
301 private void HandleShowObjectByName(string module, string[] cmdparams) 301 private void HandleShowObjectByName(string module, string[] cmdparams)
@@ -313,7 +313,7 @@ namespace OpenSim.Region.CoreModules.World.Objects.Commands
313 313
314 if (mainParams.Count < 4) 314 if (mainParams.Count < 4)
315 { 315 {
316 m_console.OutputFormat("Usage: show object name [--full] [--regex] <name>"); 316 m_console.Output("Usage: show object name [--full] [--regex] <name>");
317 return; 317 return;
318 } 318 }
319 319
@@ -346,7 +346,7 @@ namespace OpenSim.Region.CoreModules.World.Objects.Commands
346 346
347 if (mainParams.Count < 4) 347 if (mainParams.Count < 4)
348 { 348 {
349 m_console.OutputFormat("Usage: show object owner <OwnerID>"); 349 m_console.Output("Usage: show object owner <OwnerID>");
350 return; 350 return;
351 } 351 }
352 352
@@ -372,7 +372,7 @@ namespace OpenSim.Region.CoreModules.World.Objects.Commands
372 372
373 if (mainParams.Count < 5) 373 if (mainParams.Count < 5)
374 { 374 {
375 m_console.OutputFormat("Usage: show object pos [--full] <start-coord> to <end-coord>"); 375 m_console.Output("Usage: show object pos [--full] <start-coord> to <end-coord>");
376 return; 376 return;
377 } 377 }
378 378
@@ -401,7 +401,7 @@ namespace OpenSim.Region.CoreModules.World.Objects.Commands
401 if (mainParams.Count < 4) 401 if (mainParams.Count < 4)
402 { 402 {
403 //m_console.OutputFormat("Usage: show part id [--full] <UUID-or-localID>"); 403 //m_console.OutputFormat("Usage: show part id [--full] <UUID-or-localID>");
404 m_console.OutputFormat("Usage: show part id <UUID-or-localID>"); 404 m_console.Output("Usage: show part id <UUID-or-localID>");
405 return; 405 return;
406 } 406 }
407 407
@@ -425,7 +425,7 @@ namespace OpenSim.Region.CoreModules.World.Objects.Commands
425 StringBuilder sb = new StringBuilder(); 425 StringBuilder sb = new StringBuilder();
426 AddScenePartReport(sb, sop, true); 426 AddScenePartReport(sb, sop, true);
427 427
428 m_console.OutputFormat(sb.ToString()); 428 m_console.Output(sb.ToString());
429 } 429 }
430 430
431 private void HandleShowPartByPos(string module, string[] cmdparams) 431 private void HandleShowPartByPos(string module, string[] cmdparams)
@@ -442,7 +442,7 @@ namespace OpenSim.Region.CoreModules.World.Objects.Commands
442 if (mainParams.Count < 5) 442 if (mainParams.Count < 5)
443 { 443 {
444 //m_console.OutputFormat("Usage: show part pos <start-coord> to <end-coord>"); 444 //m_console.OutputFormat("Usage: show part pos <start-coord> to <end-coord>");
445 m_console.OutputFormat("Usage: show part pos [--full] <start-coord> to <end-coord>"); 445 m_console.Output("Usage: show part pos [--full] <start-coord> to <end-coord>");
446 return; 446 return;
447 } 447 }
448 448
@@ -451,7 +451,7 @@ namespace OpenSim.Region.CoreModules.World.Objects.Commands
451 451
452 if (!ConsoleUtil.TryParseConsoleMinVector(rawConsoleStartVector, out startVector)) 452 if (!ConsoleUtil.TryParseConsoleMinVector(rawConsoleStartVector, out startVector))
453 { 453 {
454 m_console.OutputFormat("Error: Start vector '{0}' does not have a valid format", rawConsoleStartVector); 454 m_console.Output("Error: Start vector '{0}' does not have a valid format", null, rawConsoleStartVector);
455 return; 455 return;
456 } 456 }
457 457
@@ -460,7 +460,7 @@ namespace OpenSim.Region.CoreModules.World.Objects.Commands
460 460
461 if (!ConsoleUtil.TryParseConsoleMaxVector(rawConsoleEndVector, out endVector)) 461 if (!ConsoleUtil.TryParseConsoleMaxVector(rawConsoleEndVector, out endVector))
462 { 462 {
463 m_console.OutputFormat("Error: End vector '{0}' does not have a valid format", rawConsoleEndVector); 463 m_console.Output("Error: End vector '{0}' does not have a valid format", null, rawConsoleEndVector);
464 return; 464 return;
465 } 465 }
466 466
@@ -482,7 +482,7 @@ namespace OpenSim.Region.CoreModules.World.Objects.Commands
482 482
483 if (mainParams.Count < 4) 483 if (mainParams.Count < 4)
484 { 484 {
485 m_console.OutputFormat("Usage: show part name [--regex] <name>"); 485 m_console.Output("Usage: show part name [--regex] <name>");
486 //m_console.OutputFormat("Usage: show part name [--full] [--regex] <name>"); 486 //m_console.OutputFormat("Usage: show part name [--full] [--regex] <name>");
487 return; 487 return;
488 } 488 }
@@ -511,7 +511,7 @@ namespace OpenSim.Region.CoreModules.World.Objects.Commands
511 511
512 if (cmdparams.Length < 4) 512 if (cmdparams.Length < 4)
513 { 513 {
514 m_console.OutputFormat("Usage: dump object id <UUID-or-localID>"); 514 m_console.Output("Usage: dump object id <UUID-or-localID>");
515 return; 515 return;
516 } 516 }
517 517
@@ -546,7 +546,7 @@ namespace OpenSim.Region.CoreModules.World.Objects.Commands
546 SceneObjectSerializer.ToOriginalXmlFormat(so, xtw, true); 546 SceneObjectSerializer.ToOriginalXmlFormat(so, xtw, true);
547 } 547 }
548 548
549 m_console.OutputFormat("Object dumped to file {0}", fileName); 549 m_console.Output("Object dumped to file {0}", fileName);
550 } 550 }
551 551
552 /// <summary> 552 /// <summary>
@@ -809,7 +809,7 @@ namespace OpenSim.Region.CoreModules.World.Objects.Commands
809 if(so.IsAttachment) 809 if(so.IsAttachment)
810 { 810 {
811 requireConfirmation = true; 811 requireConfirmation = true;
812 m_console.OutputFormat("Warning: object with uuid {0} is a attachment", uuid); 812 m_console.Output("Warning: object with uuid {0} is a attachment", null, uuid);
813 } 813 }
814 } 814 }
815 break; 815 break;
@@ -844,7 +844,7 @@ namespace OpenSim.Region.CoreModules.World.Objects.Commands
844 }); 844 });
845 845
846 if (deletes.Count == 0) 846 if (deletes.Count == 0)
847 m_console.OutputFormat("No objects were found outside region bounds"); 847 m_console.Output("No objects were found outside region bounds");
848 848
849 break; 849 break;
850 850
@@ -853,7 +853,7 @@ namespace OpenSim.Region.CoreModules.World.Objects.Commands
853 break; 853 break;
854 854
855 default: 855 default:
856 m_console.OutputFormat("Unrecognized mode {0}", mode); 856 m_console.Output("Unrecognized mode {0}", null, mode);
857 return; 857 return;
858 } 858 }
859 859
@@ -862,7 +862,7 @@ namespace OpenSim.Region.CoreModules.World.Objects.Commands
862 862
863 if (requireConfirmation) 863 if (requireConfirmation)
864 { 864 {
865 string response = MainConsole.Instance.CmdPrompt( 865 string response = MainConsole.Instance.Prompt(
866 string.Format( 866 string.Format(
867 "Are you sure that you want to delete {0} objects from {1}", 867 "Are you sure that you want to delete {0} objects from {1}",
868 deletes.Count, m_scene.RegionInfo.RegionName), 868 deletes.Count, m_scene.RegionInfo.RegionName),
@@ -870,18 +870,18 @@ namespace OpenSim.Region.CoreModules.World.Objects.Commands
870 870
871 if (response.ToLower() != "y") 871 if (response.ToLower() != "y")
872 { 872 {
873 MainConsole.Instance.OutputFormat( 873 MainConsole.Instance.Output(
874 "Aborting delete of {0} objects from {1}", deletes.Count, m_scene.RegionInfo.RegionName); 874 "Aborting delete of {0} objects from {1}", null, deletes.Count, m_scene.RegionInfo.RegionName);
875 875
876 return; 876 return;
877 } 877 }
878 } 878 }
879 879
880 m_console.OutputFormat("Deleting {0} objects in {1}", deletes.Count, m_scene.RegionInfo.RegionName); 880 m_console.Output("Deleting {0} objects in {1}", null, deletes.Count, m_scene.RegionInfo.RegionName);
881 881
882 foreach (SceneObjectGroup g in deletes) 882 foreach (SceneObjectGroup g in deletes)
883 { 883 {
884 m_console.OutputFormat("Deleting object {0} {1}", g.UUID, g.Name); 884 m_console.Output("Deleting object {0} {1}", null, g.UUID, g.Name);
885 m_scene.DeleteSceneObject(g, false); 885 m_scene.DeleteSceneObject(g, false);
886 } 886 }
887 } 887 }
@@ -895,7 +895,7 @@ namespace OpenSim.Region.CoreModules.World.Objects.Commands
895 895
896 if (mainParams.Count < 4) 896 if (mainParams.Count < 4)
897 { 897 {
898 m_console.OutputFormat("Usage: delete object name [--regex] <name>"); 898 m_console.Output("Usage: delete object name [--regex] <name>");
899 return null; 899 return null;
900 } 900 }
901 901
@@ -917,7 +917,7 @@ namespace OpenSim.Region.CoreModules.World.Objects.Commands
917 m_scene.ForEachSOG(searchAction); 917 m_scene.ForEachSOG(searchAction);
918 918
919 if (sceneObjects.Count == 0) 919 if (sceneObjects.Count == 0)
920 m_console.OutputFormat("No objects with name {0} found in {1}", name, m_scene.RegionInfo.RegionName); 920 m_console.Output("No objects with name {0} found in {1}", null, name, m_scene.RegionInfo.RegionName);
921 921
922 return sceneObjects; 922 return sceneObjects;
923 } 923 }
@@ -933,7 +933,7 @@ namespace OpenSim.Region.CoreModules.World.Objects.Commands
933 { 933 {
934 if (cmdparams.Length < 5) 934 if (cmdparams.Length < 5)
935 { 935 {
936 m_console.OutputFormat("Usage: delete object pos <start-coord> to <end-coord>"); 936 m_console.Output("Usage: delete object pos <start-coord> to <end-coord>");
937 return null; 937 return null;
938 } 938 }
939 939
@@ -952,7 +952,7 @@ namespace OpenSim.Region.CoreModules.World.Objects.Commands
952 952
953 if (!ConsoleUtil.TryParseConsoleMinVector(rawConsoleStartVector, out startVector)) 953 if (!ConsoleUtil.TryParseConsoleMinVector(rawConsoleStartVector, out startVector))
954 { 954 {
955 m_console.OutputFormat("Error: Start vector '{0}' does not have a valid format", rawConsoleStartVector); 955 m_console.Output("Error: Start vector '{0}' does not have a valid format", null, rawConsoleStartVector);
956 endVector = Vector3.Zero; 956 endVector = Vector3.Zero;
957 957
958 return false; 958 return false;
@@ -962,7 +962,7 @@ namespace OpenSim.Region.CoreModules.World.Objects.Commands
962 962
963 if (!ConsoleUtil.TryParseConsoleMaxVector(rawConsoleEndVector, out endVector)) 963 if (!ConsoleUtil.TryParseConsoleMaxVector(rawConsoleEndVector, out endVector))
964 { 964 {
965 m_console.OutputFormat("Error: End vector '{0}' does not have a valid format", rawConsoleEndVector); 965 m_console.Output("Error: End vector '{0}' does not have a valid format", null, rawConsoleEndVector);
966 return false; 966 return false;
967 } 967 }
968 968
diff --git a/OpenSim/Region/CoreModules/World/Region/RegionCommandsModule.cs b/OpenSim/Region/CoreModules/World/Region/RegionCommandsModule.cs
index 49246a2..2a661a6 100644..100755
--- a/OpenSim/Region/CoreModules/World/Region/RegionCommandsModule.cs
+++ b/OpenSim/Region/CoreModules/World/Region/RegionCommandsModule.cs
@@ -202,7 +202,7 @@ namespace OpenSim.Region.CoreModules.World.Objects.Commands
202 202
203 if (args.Length != 4) 203 if (args.Length != 4)
204 { 204 {
205 MainConsole.Instance.OutputFormat("Usage: region set <param> <value>"); 205 MainConsole.Instance.Output("Usage: region set <param> <value>");
206 return; 206 return;
207 } 207 }
208 208
@@ -224,16 +224,17 @@ namespace OpenSim.Region.CoreModules.World.Objects.Commands
224 224
225 if (newValue > ri.AgentCapacity) 225 if (newValue > ri.AgentCapacity)
226 { 226 {
227 MainConsole.Instance.OutputFormat( 227 MainConsole.Instance.Output(
228 "Cannot set {0} to {1} in {2} as max-agent-limit is {3}", "agent-limit", 228 "Cannot set {0} to {1} in {2} as max-agent-limit is {3}", "agent-limit",
229 null,
229 newValue, m_scene.Name, ri.AgentCapacity); 230 newValue, m_scene.Name, ri.AgentCapacity);
230 } 231 }
231 else 232 else
232 { 233 {
233 rs.AgentLimit = newValue; 234 rs.AgentLimit = newValue;
234 235
235 MainConsole.Instance.OutputFormat( 236 MainConsole.Instance.Output(
236 "{0} set to {1} in {2}", "agent-limit", newValue, m_scene.Name); 237 "{0} set to {1} in {2}", "agent-limit", null, newValue, m_scene.Name);
237 } 238 }
238 239
239 rs.Save(); 240 rs.Save();
@@ -247,15 +248,15 @@ namespace OpenSim.Region.CoreModules.World.Objects.Commands
247 248
248 ri.AgentCapacity = newValue; 249 ri.AgentCapacity = newValue;
249 250
250 MainConsole.Instance.OutputFormat( 251 MainConsole.Instance.Output(
251 "{0} set to {1} in {2}", "max-agent-limit", newValue, m_scene.Name); 252 "{0} set to {1} in {2}", "max-agent-limit", null, newValue, m_scene.Name);
252 253
253 if (ri.AgentCapacity < rs.AgentLimit) 254 if (ri.AgentCapacity < rs.AgentLimit)
254 { 255 {
255 rs.AgentLimit = ri.AgentCapacity; 256 rs.AgentLimit = ri.AgentCapacity;
256 257
257 MainConsole.Instance.OutputFormat( 258 MainConsole.Instance.Output(
258 "Reducing {0} to {1} in {2}", "agent-limit", rs.AgentLimit, m_scene.Name); 259 "Reducing {0} to {1} in {2}", null, "agent-limit", rs.AgentLimit, m_scene.Name);
259 } 260 }
260 261
261 rs.Save(); 262 rs.Save();
diff --git a/OpenSim/Region/CoreModules/World/Region/RestartModule.cs b/OpenSim/Region/CoreModules/World/Region/RestartModule.cs
index bb3b860..6d3daf2 100644..100755
--- a/OpenSim/Region/CoreModules/World/Region/RestartModule.cs
+++ b/OpenSim/Region/CoreModules/World/Region/RestartModule.cs
@@ -337,8 +337,8 @@ namespace OpenSim.Region.CoreModules.World.Region
337 for (int i = 4 ; i < args.Length ; i++) 337 for (int i = 4 ; i < args.Length ; i++)
338 times.Add(Convert.ToInt32(args[i])); 338 times.Add(Convert.ToInt32(args[i]));
339 339
340 MainConsole.Instance.OutputFormat( 340 MainConsole.Instance.Output(
341 "Region {0} scheduled for restart in {1} seconds", m_Scene.Name, times.Sum()); 341 "Region {0} scheduled for restart in {1} seconds", null, m_Scene.Name, times.Sum());
342 342
343 ScheduleRestart(UUID.Zero, args[3], times.ToArray(), notice); 343 ScheduleRestart(UUID.Zero, args[3], times.ToArray(), notice);
344 } 344 }
diff --git a/OpenSim/Region/CoreModules/World/Terrain/TerrainModule.cs b/OpenSim/Region/CoreModules/World/Terrain/TerrainModule.cs
index a786568..d8c118f 100644..100755
--- a/OpenSim/Region/CoreModules/World/Terrain/TerrainModule.cs
+++ b/OpenSim/Region/CoreModules/World/Terrain/TerrainModule.cs
@@ -791,8 +791,9 @@ namespace OpenSim.Region.CoreModules.World.Terrain
791 791
792 if (offsetX < 0 || offsetX >= fileWidth || offsetY < 0 || offsetY >= fileHeight) 792 if (offsetX < 0 || offsetX >= fileWidth || offsetY < 0 || offsetY >= fileHeight)
793 { 793 {
794 MainConsole.Instance.OutputFormat( 794 MainConsole.Instance.Output(
795 "ERROR: file width + minimum X tile and file height + minimum Y tile must incorporate the current region at ({0},{1}). File width {2} from {3} and file height {4} from {5} does not.", 795 "ERROR: file width + minimum X tile and file height + minimum Y tile must incorporate the current region at ({0},{1}). File width {2} from {3} and file height {4} from {5} does not.",
796 null,
796 m_scene.RegionInfo.RegionLocX, m_scene.RegionInfo.RegionLocY, fileWidth, fileStartX, fileHeight, fileStartY); 797 m_scene.RegionInfo.RegionLocX, m_scene.RegionInfo.RegionLocY, fileWidth, fileStartX, fileHeight, fileStartY);
797 798
798 return; 799 return;
@@ -810,8 +811,9 @@ namespace OpenSim.Region.CoreModules.World.Terrain
810 (int)m_scene.RegionInfo.RegionSizeX, 811 (int)m_scene.RegionInfo.RegionSizeX,
811 (int)m_scene.RegionInfo.RegionSizeY); 812 (int)m_scene.RegionInfo.RegionSizeY);
812 813
813 MainConsole.Instance.OutputFormat( 814 MainConsole.Instance.Output(
814 "Saved terrain from ({0},{1}) to ({2},{3}) from {4} to {5}", 815 "Saved terrain from ({0},{1}) to ({2},{3}) from {4} to {5}",
816 null,
815 fileStartX, fileStartY, fileStartX + fileWidth - 1, fileStartY + fileHeight - 1, 817 fileStartX, fileStartY, fileStartX + fileWidth - 1, fileStartY + fileHeight - 1,
816 m_scene.RegionInfo.RegionName, filename); 818 m_scene.RegionInfo.RegionName, filename);
817 } 819 }
@@ -820,8 +822,9 @@ namespace OpenSim.Region.CoreModules.World.Terrain
820 } 822 }
821 } 823 }
822 824
823 MainConsole.Instance.OutputFormat( 825 MainConsole.Instance.Output(
824 "ERROR: Could not save terrain from {0} to {1}. Valid file extensions are {2}", 826 "ERROR: Could not save terrain from {0} to {1}. Valid file extensions are {2}",
827 null,
825 m_scene.RegionInfo.RegionName, filename, m_supportFileExtensionsForTileSave); 828 m_scene.RegionInfo.RegionName, filename, m_supportFileExtensionsForTileSave);
826 } 829 }
827 830
@@ -1538,7 +1541,7 @@ namespace OpenSim.Region.CoreModules.World.Terrain
1538 } 1541 }
1539 else 1542 else
1540 { 1543 {
1541 MainConsole.Instance.OutputFormat("ERROR: Unrecognised direction {0} - need x or y", direction); 1544 MainConsole.Instance.Output("ERROR: Unrecognised direction {0} - need x or y", null, direction);
1542 } 1545 }
1543 } 1546 }
1544 1547
@@ -1703,8 +1706,8 @@ namespace OpenSim.Region.CoreModules.World.Terrain
1703 1706
1704 double avg = sum / (m_channel.Height * m_channel.Width); 1707 double avg = sum / (m_channel.Height * m_channel.Width);
1705 1708
1706 MainConsole.Instance.OutputFormat("Channel {0}x{1}", m_channel.Width, m_channel.Height); 1709 MainConsole.Instance.Output("Channel {0}x{1}", null, m_channel.Width, m_channel.Height);
1707 MainConsole.Instance.OutputFormat("max/min/avg/sum: {0}/{1}/{2}/{3}", max, min, avg, sum); 1710 MainConsole.Instance.Output("max/min/avg/sum: {0}/{1}/{2}/{3}", null, max, min, avg, sum);
1708 } 1711 }
1709 1712
1710 private void InterfaceEnableExperimentalBrushes(Object[] args) 1713 private void InterfaceEnableExperimentalBrushes(Object[] args)
diff --git a/OpenSim/Region/CoreModules/World/Wind/WindModule.cs b/OpenSim/Region/CoreModules/World/Wind/WindModule.cs
index ebcb678..c9580d2 100644..100755
--- a/OpenSim/Region/CoreModules/World/Wind/WindModule.cs
+++ b/OpenSim/Region/CoreModules/World/Wind/WindModule.cs
@@ -264,8 +264,8 @@ namespace OpenSim.Region.CoreModules
264 } 264 }
265 else 265 else
266 { 266 {
267 MainConsole.Instance.OutputFormat( 267 MainConsole.Instance.Output(
268 "Invalid value {0} specified for {1}", cmdparams[3], cmdparams[2]); 268 "Invalid value {0} specified for {1}", null, cmdparams[3], cmdparams[2]);
269 269
270 return; 270 return;
271 } 271 }
@@ -276,7 +276,7 @@ namespace OpenSim.Region.CoreModules
276 276
277 if (desiredPlugin.Equals(m_activeWindPlugin.Name)) 277 if (desiredPlugin.Equals(m_activeWindPlugin.Name))
278 { 278 {
279 MainConsole.Instance.OutputFormat("Wind model plugin {0} is already active", cmdparams[3]); 279 MainConsole.Instance.Output("Wind model plugin {0} is already active", null, cmdparams[3]);
280 280
281 return; 281 return;
282 } 282 }
@@ -285,11 +285,11 @@ namespace OpenSim.Region.CoreModules
285 { 285 {
286 m_activeWindPlugin = m_availableWindPlugins[cmdparams[3]]; 286 m_activeWindPlugin = m_availableWindPlugins[cmdparams[3]];
287 287
288 MainConsole.Instance.OutputFormat("{0} wind model plugin now active", m_activeWindPlugin.Name); 288 MainConsole.Instance.Output("{0} wind model plugin now active", null, m_activeWindPlugin.Name);
289 } 289 }
290 else 290 else
291 { 291 {
292 MainConsole.Instance.OutputFormat("Could not find wind model plugin {0}", desiredPlugin); 292 MainConsole.Instance.Output("Could not find wind model plugin {0}", null, desiredPlugin);
293 } 293 }
294 break; 294 break;
295 } 295 }
@@ -317,17 +317,17 @@ namespace OpenSim.Region.CoreModules
317 { 317 {
318 if (!float.TryParse(cmdparams[3], out value)) 318 if (!float.TryParse(cmdparams[3], out value))
319 { 319 {
320 MainConsole.Instance.OutputFormat("Invalid value {0}", cmdparams[3]); 320 MainConsole.Instance.Output("Invalid value {0}", null, cmdparams[3]);
321 } 321 }
322 322
323 try 323 try
324 { 324 {
325 WindParamSet(plugin, param, value); 325 WindParamSet(plugin, param, value);
326 MainConsole.Instance.OutputFormat("{0} set to {1}", param, value); 326 MainConsole.Instance.Output("{0} set to {1}", null, param, value);
327 } 327 }
328 catch (Exception e) 328 catch (Exception e)
329 { 329 {
330 MainConsole.Instance.OutputFormat("{0}", e.Message); 330 MainConsole.Instance.Output("{0}", null, e.Message);
331 } 331 }
332 } 332 }
333 else 333 else
@@ -335,11 +335,11 @@ namespace OpenSim.Region.CoreModules
335 try 335 try
336 { 336 {
337 value = WindParamGet(plugin, param); 337 value = WindParamGet(plugin, param);
338 MainConsole.Instance.OutputFormat("{0} : {1}", param, value); 338 MainConsole.Instance.Output("{0} : {1}", null, param, value);
339 } 339 }
340 catch (Exception e) 340 catch (Exception e)
341 { 341 {
342 MainConsole.Instance.OutputFormat("{0}", e.Message); 342 MainConsole.Instance.Output("{0}", null, e.Message);
343 } 343 }
344 } 344 }
345 345
diff --git a/OpenSim/Region/Framework/Interfaces/IAvatarFactoryModule.cs b/OpenSim/Region/Framework/Interfaces/IAvatarFactoryModule.cs
index d25c930..800affe 100644..100755
--- a/OpenSim/Region/Framework/Interfaces/IAvatarFactoryModule.cs
+++ b/OpenSim/Region/Framework/Interfaces/IAvatarFactoryModule.cs
@@ -31,7 +31,7 @@ using OpenSim.Framework;
31 31
32namespace OpenSim.Region.Framework.Interfaces 32namespace OpenSim.Region.Framework.Interfaces
33{ 33{
34 public delegate void ReportOutputAction(string format, params object[] args); 34 public delegate void ReportOutputAction(string format, string level, params object[] args);
35 35
36 public interface IAvatarFactoryModule 36 public interface IAvatarFactoryModule
37 { 37 {
diff --git a/OpenSim/Region/OptionalModules/Agent/TextureSender/J2KDecoderCommandModule.cs b/OpenSim/Region/OptionalModules/Agent/TextureSender/J2KDecoderCommandModule.cs
index e93fcdc..1f4c65a 100644..100755
--- a/OpenSim/Region/OptionalModules/Agent/TextureSender/J2KDecoderCommandModule.cs
+++ b/OpenSim/Region/OptionalModules/Agent/TextureSender/J2KDecoderCommandModule.cs
@@ -114,27 +114,27 @@ namespace OpenSim.Region.OptionalModules.Agent.TextureSender
114 114
115 if (!UUID.TryParse(rawAssetId, out assetId)) 115 if (!UUID.TryParse(rawAssetId, out assetId))
116 { 116 {
117 MainConsole.Instance.OutputFormat("ERROR: {0} is not a valid ID format", rawAssetId); 117 MainConsole.Instance.Output("ERROR: {0} is not a valid ID format", null, rawAssetId);
118 return; 118 return;
119 } 119 }
120 120
121 AssetBase asset = m_scene.AssetService.Get(assetId.ToString()); 121 AssetBase asset = m_scene.AssetService.Get(assetId.ToString());
122 if (asset == null) 122 if (asset == null)
123 { 123 {
124 MainConsole.Instance.OutputFormat("ERROR: No asset found with ID {0}", assetId); 124 MainConsole.Instance.Output("ERROR: No asset found with ID {0}", null, assetId);
125 return; 125 return;
126 } 126 }
127 127
128 if (asset.Type != (sbyte)AssetType.Texture) 128 if (asset.Type != (sbyte)AssetType.Texture)
129 { 129 {
130 MainConsole.Instance.OutputFormat("ERROR: Asset {0} is not a texture type", assetId); 130 MainConsole.Instance.Output("ERROR: Asset {0} is not a texture type", null, assetId);
131 return; 131 return;
132 } 132 }
133 133
134 IJ2KDecoder decoder = m_scene.RequestModuleInterface<IJ2KDecoder>(); 134 IJ2KDecoder decoder = m_scene.RequestModuleInterface<IJ2KDecoder>();
135 if (decoder == null) 135 if (decoder == null)
136 { 136 {
137 MainConsole.Instance.OutputFormat("ERROR: No IJ2KDecoder module available"); 137 MainConsole.Instance.Output("ERROR: No IJ2KDecoder module available");
138 return; 138 return;
139 } 139 }
140 140
@@ -142,13 +142,14 @@ namespace OpenSim.Region.OptionalModules.Agent.TextureSender
142 int components; 142 int components;
143 if (decoder.Decode(assetId, asset.Data, out layers, out components)) 143 if (decoder.Decode(assetId, asset.Data, out layers, out components))
144 { 144 {
145 MainConsole.Instance.OutputFormat( 145 MainConsole.Instance.Output(
146 "Successfully decoded asset {0} with {1} layers and {2} components", 146 "Successfully decoded asset {0} with {1} layers and {2} components",
147 null,
147 assetId, layers.Length, components); 148 assetId, layers.Length, components);
148 } 149 }
149 else 150 else
150 { 151 {
151 MainConsole.Instance.OutputFormat("Decode of asset {0} failed", assetId); 152 MainConsole.Instance.Output("Decode of asset {0} failed", null, assetId);
152 } 153 }
153 } 154 }
154 } 155 }
diff --git a/OpenSim/Region/OptionalModules/Asset/AssetInfoModule.cs b/OpenSim/Region/OptionalModules/Asset/AssetInfoModule.cs
index 906e1ee..89c6637 100644..100755
--- a/OpenSim/Region/OptionalModules/Asset/AssetInfoModule.cs
+++ b/OpenSim/Region/OptionalModules/Asset/AssetInfoModule.cs
@@ -115,14 +115,14 @@ namespace OpenSim.Region.OptionalModules.Asset
115 115
116 if (!UUID.TryParse(rawAssetId, out assetId)) 116 if (!UUID.TryParse(rawAssetId, out assetId))
117 { 117 {
118 MainConsole.Instance.OutputFormat("ERROR: {0} is not a valid ID format", rawAssetId); 118 MainConsole.Instance.Output("ERROR: {0} is not a valid ID format", null, rawAssetId);
119 return; 119 return;
120 } 120 }
121 121
122 AssetBase asset = m_scene.AssetService.Get(assetId.ToString()); 122 AssetBase asset = m_scene.AssetService.Get(assetId.ToString());
123 if (asset == null) 123 if (asset == null)
124 { 124 {
125 MainConsole.Instance.OutputFormat("ERROR: No asset found with ID {0}", assetId); 125 MainConsole.Instance.Output("ERROR: No asset found with ID {0}", null, assetId);
126 return; 126 return;
127 } 127 }
128 128
@@ -139,7 +139,7 @@ namespace OpenSim.Region.OptionalModules.Asset
139 } 139 }
140 } 140 }
141 141
142 MainConsole.Instance.OutputFormat("Asset dumped to file {0}", fileName); 142 MainConsole.Instance.Output("Asset dumped to file {0}", null, fileName);
143 } 143 }
144 144
145 void HandleShowAsset(string module, string[] args) 145 void HandleShowAsset(string module, string[] args)
@@ -160,13 +160,13 @@ namespace OpenSim.Region.OptionalModules.Asset
160 160
161 int i; 161 int i;
162 162
163 MainConsole.Instance.OutputFormat("Name: {0}", asset.Name); 163 MainConsole.Instance.Output("Name: {0}", null, asset.Name);
164 MainConsole.Instance.OutputFormat("Description: {0}", asset.Description); 164 MainConsole.Instance.Output("Description: {0}", null, asset.Description);
165 MainConsole.Instance.OutputFormat("Type: {0} (type number = {1})", (AssetType)asset.Type, asset.Type); 165 MainConsole.Instance.Output("Type: {0} (type number = {1})", null, (AssetType)asset.Type, asset.Type);
166 MainConsole.Instance.OutputFormat("Content-type: {0}", asset.Metadata.ContentType); 166 MainConsole.Instance.Output("Content-type: {0}", null, asset.Metadata.ContentType);
167 MainConsole.Instance.OutputFormat("Size: {0} bytes", asset.Data.Length); 167 MainConsole.Instance.Output("Size: {0} bytes", null, asset.Data.Length);
168 MainConsole.Instance.OutputFormat("Temporary: {0}", asset.Temporary ? "yes" : "no"); 168 MainConsole.Instance.Output("Temporary: {0}", null, asset.Temporary ? "yes" : "no");
169 MainConsole.Instance.OutputFormat("Flags: {0}", asset.Metadata.Flags); 169 MainConsole.Instance.Output("Flags: {0}", null, asset.Metadata.Flags);
170 170
171 for (i = 0 ; i < 5 ; i++) 171 for (i = 0 ; i < 5 ; i++)
172 { 172 {
diff --git a/OpenSim/Region/OptionalModules/Avatar/Animations/AnimationsCommandModule.cs b/OpenSim/Region/OptionalModules/Avatar/Animations/AnimationsCommandModule.cs
index 0698cec..4e8f507 100644..100755
--- a/OpenSim/Region/OptionalModules/Avatar/Animations/AnimationsCommandModule.cs
+++ b/OpenSim/Region/OptionalModules/Avatar/Animations/AnimationsCommandModule.cs
@@ -109,7 +109,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Animations
109 { 109 {
110 if (cmd.Length != 2 && cmd.Length < 4) 110 if (cmd.Length != 2 && cmd.Length < 4)
111 { 111 {
112 MainConsole.Instance.OutputFormat("Usage: show animations [<first-name> <last-name>]"); 112 MainConsole.Instance.Output("Usage: show animations [<first-name> <last-name>]");
113 return; 113 return;
114 } 114 }
115 115
diff --git a/OpenSim/Region/OptionalModules/Avatar/Appearance/AppearanceInfoModule.cs b/OpenSim/Region/OptionalModules/Avatar/Appearance/AppearanceInfoModule.cs
index c04f40c..ded0857 100644..100755
--- a/OpenSim/Region/OptionalModules/Avatar/Appearance/AppearanceInfoModule.cs
+++ b/OpenSim/Region/OptionalModules/Avatar/Appearance/AppearanceInfoModule.cs
@@ -154,7 +154,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Appearance
154 { 154 {
155 if (cmd.Length != 2 && cmd.Length < 4) 155 if (cmd.Length != 2 && cmd.Length < 4)
156 { 156 {
157 MainConsole.Instance.OutputFormat("Usage: appearance send [<first-name> <last-name>]"); 157 MainConsole.Instance.Output("Usage: appearance send [<first-name> <last-name>]");
158 return; 158 return;
159 } 159 }
160 160
@@ -178,8 +178,9 @@ namespace OpenSim.Region.OptionalModules.Avatar.Appearance
178 ScenePresence sp = scene.GetScenePresence(optionalTargetFirstName, optionalTargetLastName); 178 ScenePresence sp = scene.GetScenePresence(optionalTargetFirstName, optionalTargetLastName);
179 if (sp != null && !sp.IsChildAgent) 179 if (sp != null && !sp.IsChildAgent)
180 { 180 {
181 MainConsole.Instance.OutputFormat( 181 MainConsole.Instance.Output(
182 "Sending appearance information for {0} to all other avatars in {1}", 182 "Sending appearance information for {0} to all other avatars in {1}",
183 null,
183 sp.Name, scene.RegionInfo.RegionName); 184 sp.Name, scene.RegionInfo.RegionName);
184 185
185 scene.AvatarFactory.SendAppearance(sp.UUID); 186 scene.AvatarFactory.SendAppearance(sp.UUID);
@@ -190,8 +191,9 @@ namespace OpenSim.Region.OptionalModules.Avatar.Appearance
190 scene.ForEachRootScenePresence( 191 scene.ForEachRootScenePresence(
191 sp => 192 sp =>
192 { 193 {
193 MainConsole.Instance.OutputFormat( 194 MainConsole.Instance.Output(
194 "Sending appearance information for {0} to all other avatars in {1}", 195 "Sending appearance information for {0} to all other avatars in {1}",
196 null,
195 sp.Name, scene.RegionInfo.RegionName); 197 sp.Name, scene.RegionInfo.RegionName);
196 198
197 scene.AvatarFactory.SendAppearance(sp.UUID); 199 scene.AvatarFactory.SendAppearance(sp.UUID);
@@ -206,7 +208,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Appearance
206 { 208 {
207 if (cmd.Length != 2 && cmd.Length < 4) 209 if (cmd.Length != 2 && cmd.Length < 4)
208 { 210 {
209 MainConsole.Instance.OutputFormat("Usage: appearance show [<first-name> <last-name>]"); 211 MainConsole.Instance.Output("Usage: appearance show [<first-name> <last-name>]");
210 return; 212 return;
211 } 213 }
212 214
@@ -229,7 +231,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Appearance
229 { 231 {
230 ScenePresence sp = scene.GetScenePresence(optionalTargetFirstName, optionalTargetLastName); 232 ScenePresence sp = scene.GetScenePresence(optionalTargetFirstName, optionalTargetLastName);
231 if (sp != null && !sp.IsChildAgent) 233 if (sp != null && !sp.IsChildAgent)
232 scene.AvatarFactory.WriteBakedTexturesReport(sp, MainConsole.Instance.OutputFormat); 234 scene.AvatarFactory.WriteBakedTexturesReport(sp, MainConsole.Instance.Output);
233 } 235 }
234 else 236 else
235 { 237 {
@@ -237,8 +239,8 @@ namespace OpenSim.Region.OptionalModules.Avatar.Appearance
237 sp => 239 sp =>
238 { 240 {
239 bool bakedTextureValid = scene.AvatarFactory.ValidateBakedTextureCache(sp); 241 bool bakedTextureValid = scene.AvatarFactory.ValidateBakedTextureCache(sp);
240 MainConsole.Instance.OutputFormat( 242 MainConsole.Instance.Output(
241 "{0} baked appearance texture is {1}", sp.Name, bakedTextureValid ? "OK" : "incomplete"); 243 "{0} baked appearance texture is {1}", null, sp.Name, bakedTextureValid ? "OK" : "incomplete");
242 } 244 }
243 ); 245 );
244 } 246 }
@@ -250,7 +252,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Appearance
250 { 252 {
251 if (cmd.Length != 4) 253 if (cmd.Length != 4)
252 { 254 {
253 MainConsole.Instance.OutputFormat("Usage: appearance rebake <first-name> <last-name>"); 255 MainConsole.Instance.Output("Usage: appearance rebake <first-name> <last-name>");
254 return; 256 return;
255 } 257 }
256 258
@@ -267,12 +269,14 @@ namespace OpenSim.Region.OptionalModules.Avatar.Appearance
267 int rebakesRequested = scene.AvatarFactory.RequestRebake(sp, false); 269 int rebakesRequested = scene.AvatarFactory.RequestRebake(sp, false);
268 270
269 if (rebakesRequested > 0) 271 if (rebakesRequested > 0)
270 MainConsole.Instance.OutputFormat( 272 MainConsole.Instance.Output(
271 "Requesting rebake of {0} uploaded textures for {1} in {2}", 273 "Requesting rebake of {0} uploaded textures for {1} in {2}",
274 null,
272 rebakesRequested, sp.Name, scene.RegionInfo.RegionName); 275 rebakesRequested, sp.Name, scene.RegionInfo.RegionName);
273 else 276 else
274 MainConsole.Instance.OutputFormat( 277 MainConsole.Instance.Output(
275 "No texture IDs available for rebake request for {0} in {1}", 278 "No texture IDs available for rebake request for {0} in {1}",
279 null,
276 sp.Name, scene.RegionInfo.RegionName); 280 sp.Name, scene.RegionInfo.RegionName);
277 } 281 }
278 } 282 }
@@ -283,7 +287,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Appearance
283 { 287 {
284 if (cmd.Length != 3) 288 if (cmd.Length != 3)
285 { 289 {
286 MainConsole.Instance.OutputFormat("Usage: appearance find <uuid-or-start-of-uuid>"); 290 MainConsole.Instance.Output("Usage: appearance find <uuid-or-start-of-uuid>");
287 return; 291 return;
288 } 292 }
289 293
@@ -310,12 +314,13 @@ namespace OpenSim.Region.OptionalModules.Avatar.Appearance
310 314
311 if (matchedAvatars.Count == 0) 315 if (matchedAvatars.Count == 0)
312 { 316 {
313 MainConsole.Instance.OutputFormat("{0} did not match any baked avatar textures in use", rawUuid); 317 MainConsole.Instance.Output("{0} did not match any baked avatar textures in use", null, rawUuid);
314 } 318 }
315 else 319 else
316 { 320 {
317 MainConsole.Instance.OutputFormat( 321 MainConsole.Instance.Output(
318 "{0} matched {1}", 322 "{0} matched {1}",
323 null,
319 rawUuid, 324 rawUuid,
320 string.Join(", ", matchedAvatars.ToList().ConvertAll<string>(sp => sp.Name).ToArray())); 325 string.Join(", ", matchedAvatars.ToList().ConvertAll<string>(sp => sp.Name).ToArray()));
321 } 326 }
@@ -325,7 +330,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Appearance
325 { 330 {
326 if (cmd.Length != 2 && cmd.Length < 4) 331 if (cmd.Length != 2 && cmd.Length < 4)
327 { 332 {
328 MainConsole.Instance.OutputFormat("Usage: wearables show [<first-name> <last-name>]"); 333 MainConsole.Instance.Output("Usage: wearables show [<first-name> <last-name>]");
329 return; 334 return;
330 } 335 }
331 336
@@ -388,7 +393,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Appearance
388 { 393 {
389 if (cmd.Length != 4) 394 if (cmd.Length != 4)
390 { 395 {
391 MainConsole.Instance.OutputFormat("Usage: wearables check <first-name> <last-name>"); 396 MainConsole.Instance.Output("Usage: wearables check <first-name> <last-name>");
392 return; 397 return;
393 } 398 }
394 399
@@ -410,7 +415,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Appearance
410 AvatarWearable[] wearables = sp.Appearance.Wearables; 415 AvatarWearable[] wearables = sp.Appearance.Wearables;
411 if(wearables.Count() == 0) 416 if(wearables.Count() == 0)
412 { 417 {
413 MainConsole.Instance.OutputFormat("avatar has no wearables"); 418 MainConsole.Instance.Output("avatar has no wearables");
414 return; 419 return;
415 } 420 }
416 421
diff --git a/OpenSim/Region/OptionalModules/Avatar/Friends/FriendsCommandsModule.cs b/OpenSim/Region/OptionalModules/Avatar/Friends/FriendsCommandsModule.cs
index 31fc56a..030c9eb 100644..100755
--- a/OpenSim/Region/OptionalModules/Avatar/Friends/FriendsCommandsModule.cs
+++ b/OpenSim/Region/OptionalModules/Avatar/Friends/FriendsCommandsModule.cs
@@ -122,7 +122,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Friends
122 122
123 if (mainParams.Count != 4) 123 if (mainParams.Count != 4)
124 { 124 {
125 MainConsole.Instance.OutputFormat("Usage: friends show [--cache] <first-name> <last-name>"); 125 MainConsole.Instance.Output("Usage: friends show [--cache] <first-name> <last-name>");
126 return; 126 return;
127 } 127 }
128 128
@@ -136,7 +136,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Friends
136 136
137 if (userId == UUID.Zero) 137 if (userId == UUID.Zero)
138 { 138 {
139 MainConsole.Instance.OutputFormat("No such user as {0} {1}", firstName, lastName); 139 MainConsole.Instance.Output("No such user as {0} {1}", null, firstName, lastName);
140 return; 140 return;
141 } 141 }
142 142
@@ -146,7 +146,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Friends
146 { 146 {
147 if (!m_friendsModule.AreFriendsCached(userId)) 147 if (!m_friendsModule.AreFriendsCached(userId))
148 { 148 {
149 MainConsole.Instance.OutputFormat("No friends cached on this simulator for {0} {1}", firstName, lastName); 149 MainConsole.Instance.Output("No friends cached on this simulator for {0} {1}", null, firstName, lastName);
150 return; 150 return;
151 } 151 }
152 else 152 else
@@ -162,10 +162,10 @@ namespace OpenSim.Region.OptionalModules.Avatar.Friends
162 friends = ((FriendsModule)m_friendsModule).FriendsService.GetFriends(userId); 162 friends = ((FriendsModule)m_friendsModule).FriendsService.GetFriends(userId);
163 } 163 }
164 164
165 MainConsole.Instance.OutputFormat("Friends for {0} {1} {2}:", firstName, lastName, userId); 165 MainConsole.Instance.Output("Friends for {0} {1} {2}:", null, firstName, lastName, userId);
166 166
167 MainConsole.Instance.OutputFormat( 167 MainConsole.Instance.Output(
168 "{0,-36} {1,-36} {2,-7} {3,7} {4,10}", "UUID", "Name", "Status", "MyFlags", "TheirFlags"); 168 "{0,-36} {1,-36} {2,-7} {3,7} {4,10}", null, "UUID", "Name", "Status", "MyFlags", "TheirFlags");
169 169
170 foreach (FriendInfo friend in friends) 170 foreach (FriendInfo friend in friends)
171 { 171 {
@@ -191,8 +191,9 @@ namespace OpenSim.Region.OptionalModules.Avatar.Friends
191 else 191 else
192 onlineText = "offline"; 192 onlineText = "offline";
193 193
194 MainConsole.Instance.OutputFormat( 194 MainConsole.Instance.Output(
195 "{0,-36} {1,-36} {2,-7} {3,-7} {4,-10}", 195 "{0,-36} {1,-36} {2,-7} {3,-7} {4,-10}",
196 null,
196 friend.Friend, friendName, onlineText, friend.MyFlags, friend.TheirFlags); 197 friend.Friend, friendName, onlineText, friend.MyFlags, friend.TheirFlags);
197 } 198 }
198 } 199 }
diff --git a/OpenSim/Region/OptionalModules/Avatar/SitStand/SitStandCommandsModule.cs b/OpenSim/Region/OptionalModules/Avatar/SitStand/SitStandCommandsModule.cs
index 1b5ee04..1dd5b0a 100644..100755
--- a/OpenSim/Region/OptionalModules/Avatar/SitStand/SitStandCommandsModule.cs
+++ b/OpenSim/Region/OptionalModules/Avatar/SitStand/SitStandCommandsModule.cs
@@ -142,8 +142,9 @@ namespace OpenSim.Region.OptionalModules.Avatar.SitStand
142 142
143 if (sitPart != null) 143 if (sitPart != null)
144 { 144 {
145 MainConsole.Instance.OutputFormat( 145 MainConsole.Instance.Output(
146 "Sitting {0} on {1} {2} in {3}", 146 "Sitting {0} on {1} {2} in {3}",
147 null,
147 sp.Name, sitPart.ParentGroup.Name, sitPart.ParentGroup.UUID, m_scene.Name); 148 sp.Name, sitPart.ParentGroup.Name, sitPart.ParentGroup.UUID, m_scene.Name);
148 149
149 sp.HandleAgentRequestSit(sp.ControllingClient, sp.UUID, sitPart.UUID, Vector3.Zero); 150 sp.HandleAgentRequestSit(sp.ControllingClient, sp.UUID, sitPart.UUID, Vector3.Zero);
@@ -151,8 +152,9 @@ namespace OpenSim.Region.OptionalModules.Avatar.SitStand
151 } 152 }
152 else 153 else
153 { 154 {
154 MainConsole.Instance.OutputFormat( 155 MainConsole.Instance.Output(
155 "Could not find any unoccupied set seat on which to sit {0} in {1}. Aborting", 156 "Could not find any unoccupied set seat on which to sit {0} in {1}. Aborting",
157 null,
156 sp.Name, m_scene.Name); 158 sp.Name, m_scene.Name);
157 159
158 break; 160 break;
@@ -177,7 +179,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.SitStand
177 { 179 {
178 if (sp.SitGround || sp.IsSatOnObject) 180 if (sp.SitGround || sp.IsSatOnObject)
179 { 181 {
180 MainConsole.Instance.OutputFormat("Standing {0} in {1}", sp.Name, m_scene.Name); 182 MainConsole.Instance.Output("Standing {0} in {1}", null, sp.Name, m_scene.Name);
181 sp.StandUp(); 183 sp.StandUp();
182 } 184 }
183 } 185 }
diff --git a/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/GroupsMessagingModule.cs b/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/GroupsMessagingModule.cs
index 8791235..04ff09d 100644..100755
--- a/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/GroupsMessagingModule.cs
+++ b/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/GroupsMessagingModule.cs
@@ -243,7 +243,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups
243 243
244 m_debugEnabled = verbose; 244 m_debugEnabled = verbose;
245 245
246 MainConsole.Instance.OutputFormat("{0} verbose logging set to {1}", Name, m_debugEnabled); 246 MainConsole.Instance.Output("{0} verbose logging set to {1}", null, Name, m_debugEnabled);
247 } 247 }
248 248
249 /// <summary> 249 /// <summary>
diff --git a/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/GroupsModule.cs b/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/GroupsModule.cs
index 4b81838..1d65d8b 100644..100755
--- a/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/GroupsModule.cs
+++ b/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/GroupsModule.cs
@@ -154,7 +154,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups
154 154
155 m_debugEnabled = verbose; 155 m_debugEnabled = verbose;
156 156
157 MainConsole.Instance.OutputFormat("{0} verbose logging set to {1}", Name, m_debugEnabled); 157 MainConsole.Instance.Output("{0} verbose logging set to {1}", null, Name, m_debugEnabled);
158 } 158 }
159 159
160 public void RegionLoaded(Scene scene) 160 public void RegionLoaded(Scene scene)
diff --git a/OpenSim/Region/OptionalModules/PhysicsParameters/PhysicsParameters.cs b/OpenSim/Region/OptionalModules/PhysicsParameters/PhysicsParameters.cs
index bcfb34d..9bcbfda 100755
--- a/OpenSim/Region/OptionalModules/PhysicsParameters/PhysicsParameters.cs
+++ b/OpenSim/Region/OptionalModules/PhysicsParameters/PhysicsParameters.cs
@@ -256,13 +256,13 @@ namespace OpenSim.Region.OptionalModules.PhysicsParameters
256 private void WriteOut(string msg, params object[] args) 256 private void WriteOut(string msg, params object[] args)
257 { 257 {
258 // m_log.InfoFormat(msg, args); 258 // m_log.InfoFormat(msg, args);
259 MainConsole.Instance.OutputFormat(msg, args); 259 MainConsole.Instance.Output(msg, null, args);
260 } 260 }
261 261
262 private void WriteError(string msg, params object[] args) 262 private void WriteError(string msg, params object[] args)
263 { 263 {
264 // m_log.ErrorFormat(msg, args); 264 // m_log.ErrorFormat(msg, args);
265 MainConsole.Instance.OutputFormat(msg, args); 265 MainConsole.Instance.Output(msg, null, args);
266 } 266 }
267 } 267 }
268} 268}
diff --git a/OpenSim/Region/OptionalModules/Scripting/JsonStore/JsonStoreCommands.cs b/OpenSim/Region/OptionalModules/Scripting/JsonStore/JsonStoreCommands.cs
index 9bf9cb0..ff30a5c 100644..100755
--- a/OpenSim/Region/OptionalModules/Scripting/JsonStore/JsonStoreCommands.cs
+++ b/OpenSim/Region/OptionalModules/Scripting/JsonStore/JsonStoreCommands.cs
@@ -186,7 +186,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore
186 return; 186 return;
187 187
188 JsonStoreStats stats = m_store.GetStoreStats(); 188 JsonStoreStats stats = m_store.GetStoreStats();
189 MainConsole.Instance.OutputFormat("{0}\t{1}",m_scene.RegionInfo.RegionName,stats.StoreCount); 189 MainConsole.Instance.Output("{0}\t{1}", null, m_scene.RegionInfo.RegionName, stats.StoreCount);
190 } 190 }
191 191
192#endregion 192#endregion
diff --git a/OpenSim/Region/OptionalModules/Scripting/RegionReadyModule/RegionReadyModule.cs b/OpenSim/Region/OptionalModules/Scripting/RegionReadyModule/RegionReadyModule.cs
index 732735e..7d95c7f 100644..100755
--- a/OpenSim/Region/OptionalModules/Scripting/RegionReadyModule/RegionReadyModule.cs
+++ b/OpenSim/Region/OptionalModules/Scripting/RegionReadyModule/RegionReadyModule.cs
@@ -109,7 +109,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.RegionReady
109 // This should always show up to the user but should not trigger warn/errors as these messages are 109 // This should always show up to the user but should not trigger warn/errors as these messages are
110 // expected and are not simulator problems. Ideally, there would be a status level in log4net but 110 // expected and are not simulator problems. Ideally, there would be a status level in log4net but
111 // failing that, we will print out to console instead. 111 // failing that, we will print out to console instead.
112 MainConsole.Instance.OutputFormat("Region {0} - LOGINS DISABLED DURING INITIALIZATION.", m_scene.Name); 112 MainConsole.Instance.Output("Region {0} - LOGINS DISABLED DURING INITIALIZATION.", null, m_scene.Name);
113 113
114 if (m_uri != string.Empty) 114 if (m_uri != string.Empty)
115 { 115 {
@@ -232,7 +232,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.RegionReady
232 // without info log messages enabled. Making this a warning is arguably misleading since it isn't a 232 // without info log messages enabled. Making this a warning is arguably misleading since it isn't a
233 // warning, and monitor scripts looking for warn/error/fatal messages will received false positives. 233 // warning, and monitor scripts looking for warn/error/fatal messages will received false positives.
234 // Arguably, log4net needs a status log level (like Apache). 234 // Arguably, log4net needs a status log level (like Apache).
235 MainConsole.Instance.OutputFormat("INITIALIZATION COMPLETE FOR {0} - LOGINS ENABLED", m_scene.Name); 235 MainConsole.Instance.Output("INITIALIZATION COMPLETE FOR {0} - LOGINS ENABLED", null, m_scene.Name);
236 } 236 }
237 237
238 m_scene.SceneGridService.InformNeighborsThatRegionisUp( 238 m_scene.SceneGridService.InformNeighborsThatRegionisUp(
diff --git a/OpenSim/Region/OptionalModules/World/AutoBackup/AutoBackupModule.cs b/OpenSim/Region/OptionalModules/World/AutoBackup/AutoBackupModule.cs
index 64513a0..9ab9610 100644..100755
--- a/OpenSim/Region/OptionalModules/World/AutoBackup/AutoBackupModule.cs
+++ b/OpenSim/Region/OptionalModules/World/AutoBackup/AutoBackupModule.cs
@@ -271,13 +271,13 @@ namespace OpenSim.Region.OptionalModules.World.AutoBackup
271 271
272 if (args.Length != 2) 272 if (args.Length != 2)
273 { 273 {
274 MainConsole.Instance.OutputFormat ("Usage: dooarbackup <regionname>"); 274 MainConsole.Instance.Output("Usage: dooarbackup <regionname>");
275 return; 275 return;
276 } 276 }
277 277
278 if(m_busy) 278 if(m_busy)
279 { 279 {
280 MainConsole.Instance.OutputFormat ("Already doing a backup, please try later"); 280 MainConsole.Instance.Output("Already doing a backup, please try later");
281 return; 281 return;
282 } 282 }
283 283
@@ -327,7 +327,7 @@ namespace OpenSim.Region.OptionalModules.World.AutoBackup
327 m_busy = false; 327 m_busy = false;
328 } 328 }
329 if (!found) 329 if (!found)
330 MainConsole.Instance.OutputFormat ("No such region {0}. Nothing to backup", name); 330 MainConsole.Instance.Output("No such region {0}. Nothing to backup", null, name);
331 } 331 }
332 332
333 private void ParseDefaultConfig(IConfig config) 333 private void ParseDefaultConfig(IConfig config)
diff --git a/OpenSim/Region/OptionalModules/World/SceneCommands/SceneCommandsModule.cs b/OpenSim/Region/OptionalModules/World/SceneCommands/SceneCommandsModule.cs
index f406ca6..6eac299 100644..100755
--- a/OpenSim/Region/OptionalModules/World/SceneCommands/SceneCommandsModule.cs
+++ b/OpenSim/Region/OptionalModules/World/SceneCommands/SceneCommandsModule.cs
@@ -145,7 +145,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Attachments
145 cdl.AddRow("teleport", m_scene.DebugTeleporting); 145 cdl.AddRow("teleport", m_scene.DebugTeleporting);
146 cdl.AddRow("updates", m_scene.DebugUpdates); 146 cdl.AddRow("updates", m_scene.DebugUpdates);
147 147
148 MainConsole.Instance.OutputFormat("Scene {0} options:", m_scene.Name); 148 MainConsole.Instance.Output("Scene {0} options:", null, m_scene.Name);
149 MainConsole.Instance.Output(cdl.ToString()); 149 MainConsole.Instance.Output(cdl.ToString());
150 } 150 }
151 151
@@ -160,7 +160,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Attachments
160 string value = args[4]; 160 string value = args[4];
161 SetSceneDebugOptions(new Dictionary<string, string>() { { key, value } }); 161 SetSceneDebugOptions(new Dictionary<string, string>() { { key, value } });
162 162
163 MainConsole.Instance.OutputFormat("Set {0} debug scene {1} = {2}", m_scene.Name, key, value); 163 MainConsole.Instance.Output("Set {0} debug scene {1} = {2}", null, m_scene.Name, key, value);
164 } 164 }
165 else 165 else
166 { 166 {
diff --git a/OpenSim/Region/ScriptEngine/XEngine/ScriptEngineConsoleCommands.cs b/OpenSim/Region/ScriptEngine/XEngine/ScriptEngineConsoleCommands.cs
index efb854d..01e35c1 100644..100755
--- a/OpenSim/Region/ScriptEngine/XEngine/ScriptEngineConsoleCommands.cs
+++ b/OpenSim/Region/ScriptEngine/XEngine/ScriptEngineConsoleCommands.cs
@@ -89,7 +89,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine
89 } 89 }
90 90
91 MainConsole.Instance.Output(cdt.ToString()); 91 MainConsole.Instance.Output(cdt.ToString());
92 MainConsole.Instance.OutputFormat("Total: {0}", sensorInfo.Count); 92 MainConsole.Instance.Output("Total: {0}", null, sensorInfo.Count);
93 } 93 }
94 94
95 private void HandleShowTimers(string module, string[] cmdparams) 95 private void HandleShowTimers(string module, string[] cmdparams)
@@ -120,7 +120,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine
120 } 120 }
121 121
122 MainConsole.Instance.Output(cdt.ToString()); 122 MainConsole.Instance.Output(cdt.ToString());
123 MainConsole.Instance.OutputFormat("Total: {0}", timersInfo.Count); 123 MainConsole.Instance.Output("Total: {0}", null, timersInfo.Count);
124 } 124 }
125 } 125 }
126} \ No newline at end of file 126} \ No newline at end of file
diff --git a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs
index dd83744..e4a41de 100755
--- a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs
+++ b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs
@@ -456,7 +456,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine
456 } 456 }
457 457
458 si.DebugLevel = newLevel; 458 si.DebugLevel = newLevel;
459 MainConsole.Instance.OutputFormat("Set debug level of {0} {1} to {2}", si.ScriptName, si.ItemID, newLevel); 459 MainConsole.Instance.Output("Set debug level of {0} {1} to {2}", null, si.ScriptName, si.ItemID, newLevel);
460 } 460 }
461 461
462 /// <summary> 462 /// <summary>
@@ -472,12 +472,12 @@ namespace OpenSim.Region.ScriptEngine.XEngine
472 if (ConsoleUtil.TryParseConsoleNaturalInt(MainConsole.Instance, args[3], out newDebug)) 472 if (ConsoleUtil.TryParseConsoleNaturalInt(MainConsole.Instance, args[3], out newDebug))
473 { 473 {
474 DebugLevel = newDebug; 474 DebugLevel = newDebug;
475 MainConsole.Instance.OutputFormat("Debug level set to {0} in XEngine for region {1}", newDebug, m_Scene.Name); 475 MainConsole.Instance.Output("Debug level set to {0} in XEngine for region {1}", null, newDebug, m_Scene.Name);
476 } 476 }
477 } 477 }
478 else if (args.Length == 3) 478 else if (args.Length == 3)
479 { 479 {
480 MainConsole.Instance.OutputFormat("Current debug level is {0}", DebugLevel); 480 MainConsole.Instance.Output("Current debug level is {0}", null, DebugLevel);
481 } 481 }
482 else 482 else
483 { 483 {
@@ -532,7 +532,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine
532 532
533 if (!UUID.TryParse(rawItemId, out itemId)) 533 if (!UUID.TryParse(rawItemId, out itemId))
534 { 534 {
535 MainConsole.Instance.OutputFormat("ERROR: {0} is not a valid UUID", rawItemId); 535 MainConsole.Instance.Output("ERROR: {0} is not a valid UUID", null, rawItemId);
536 continue; 536 continue;
537 } 537 }
538 538
@@ -617,8 +617,8 @@ namespace OpenSim.Region.ScriptEngine.XEngine
617 { 617 {
618 lock (m_Scripts) 618 lock (m_Scripts)
619 { 619 {
620 MainConsole.Instance.OutputFormat( 620 MainConsole.Instance.Output(
621 "Showing {0} scripts in {1}", m_Scripts.Count, m_Scene.RegionInfo.RegionName); 621 "Showing {0} scripts in {1}", null, m_Scripts.Count, m_Scene.RegionInfo.RegionName);
622 } 622 }
623 } 623 }
624 624
@@ -669,8 +669,9 @@ namespace OpenSim.Region.ScriptEngine.XEngine
669 instance.Suspend(); 669 instance.Suspend();
670 670
671 SceneObjectPart sop = m_Scene.GetSceneObjectPart(instance.ObjectID); 671 SceneObjectPart sop = m_Scene.GetSceneObjectPart(instance.ObjectID);
672 MainConsole.Instance.OutputFormat( 672 MainConsole.Instance.Output(
673 "Suspended {0}.{1}, item UUID {2}, prim UUID {3} @ {4}", 673 "Suspended {0}.{1}, item UUID {2}, prim UUID {3} @ {4}",
674 null,
674 instance.PrimName, instance.ScriptName, instance.ItemID, instance.ObjectID, sop.AbsolutePosition); 675 instance.PrimName, instance.ScriptName, instance.ItemID, instance.ObjectID, sop.AbsolutePosition);
675 } 676 }
676 } 677 }
@@ -682,8 +683,9 @@ namespace OpenSim.Region.ScriptEngine.XEngine
682 instance.Resume(); 683 instance.Resume();
683 684
684 SceneObjectPart sop = m_Scene.GetSceneObjectPart(instance.ObjectID); 685 SceneObjectPart sop = m_Scene.GetSceneObjectPart(instance.ObjectID);
685 MainConsole.Instance.OutputFormat( 686 MainConsole.Instance.Output(
686 "Resumed {0}.{1}, item UUID {2}, prim UUID {3} @ {4}", 687 "Resumed {0}.{1}, item UUID {2}, prim UUID {3} @ {4}",
688 null,
687 instance.PrimName, instance.ScriptName, instance.ItemID, instance.ObjectID, sop.AbsolutePosition); 689 instance.PrimName, instance.ScriptName, instance.ItemID, instance.ObjectID, sop.AbsolutePosition);
688 } 690 }
689 } 691 }
@@ -695,8 +697,9 @@ namespace OpenSim.Region.ScriptEngine.XEngine
695 instance.Start(); 697 instance.Start();
696 698
697 SceneObjectPart sop = m_Scene.GetSceneObjectPart(instance.ObjectID); 699 SceneObjectPart sop = m_Scene.GetSceneObjectPart(instance.ObjectID);
698 MainConsole.Instance.OutputFormat( 700 MainConsole.Instance.Output(
699 "Started {0}.{1}, item UUID {2}, prim UUID {3} @ {4}", 701 "Started {0}.{1}, item UUID {2}, prim UUID {3} @ {4}",
702 null,
700 instance.PrimName, instance.ScriptName, instance.ItemID, instance.ObjectID, sop.AbsolutePosition); 703 instance.PrimName, instance.ScriptName, instance.ItemID, instance.ObjectID, sop.AbsolutePosition);
701 } 704 }
702 } 705 }
@@ -710,8 +713,9 @@ namespace OpenSim.Region.ScriptEngine.XEngine
710 instance.Stop(0); 713 instance.Stop(0);
711 714
712 SceneObjectPart sop = m_Scene.GetSceneObjectPart(instance.ObjectID); 715 SceneObjectPart sop = m_Scene.GetSceneObjectPart(instance.ObjectID);
713 MainConsole.Instance.OutputFormat( 716 MainConsole.Instance.Output(
714 "Stopped {0}.{1}, item UUID {2}, prim UUID {3} @ {4}", 717 "Stopped {0}.{1}, item UUID {2}, prim UUID {3} @ {4}",
718 null,
715 instance.PrimName, instance.ScriptName, instance.ItemID, instance.ObjectID, sop.AbsolutePosition); 719 instance.PrimName, instance.ScriptName, instance.ItemID, instance.ObjectID, sop.AbsolutePosition);
716 } 720 }
717 } 721 }