aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ExtensionsScriptModule/ScriptInfo.cs
diff options
context:
space:
mode:
authorJeff Ames2008-02-05 19:44:27 +0000
committerJeff Ames2008-02-05 19:44:27 +0000
commit6ed5283bc06a62f38eb517e67b975832b603bf61 (patch)
treee5f635018789b73a99ddeca0883a68368fa5eece /OpenSim/Region/ExtensionsScriptModule/ScriptInfo.cs
parentCut down on the number of packets sent during terraforming. Terraforming shou... (diff)
downloadopensim-SC_OLD-6ed5283bc06a62f38eb517e67b975832b603bf61.zip
opensim-SC_OLD-6ed5283bc06a62f38eb517e67b975832b603bf61.tar.gz
opensim-SC_OLD-6ed5283bc06a62f38eb517e67b975832b603bf61.tar.bz2
opensim-SC_OLD-6ed5283bc06a62f38eb517e67b975832b603bf61.tar.xz
Converted logging to use log4net.
Changed LogBase to ConsoleBase, which handles console I/O. This is mostly an in-place conversion, so lots of refactoring can still be done.
Diffstat (limited to 'OpenSim/Region/ExtensionsScriptModule/ScriptInfo.cs')
-rw-r--r--OpenSim/Region/ExtensionsScriptModule/ScriptInfo.cs11
1 files changed, 7 insertions, 4 deletions
diff --git a/OpenSim/Region/ExtensionsScriptModule/ScriptInfo.cs b/OpenSim/Region/ExtensionsScriptModule/ScriptInfo.cs
index af54a4e..e90bfc1 100644
--- a/OpenSim/Region/ExtensionsScriptModule/ScriptInfo.cs
+++ b/OpenSim/Region/ExtensionsScriptModule/ScriptInfo.cs
@@ -36,23 +36,26 @@ namespace OpenSim.Region.ExtensionsScriptModule
36 /// </summary> 36 /// </summary>
37 public class ScriptInfo 37 public class ScriptInfo
38 { 38 {
39 private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
40
39 // Reference to world.eventsManager provided for convenience 41 // Reference to world.eventsManager provided for convenience
40 public EventManager events; 42 public EventManager events;
41 43
42 // The main world 44 // The main world
43 public Scene world; 45 public Scene world;
44 46
45 // The console
46 public LogBase logger;
47
48 // API Access 47 // API Access
49 public ScriptAPI api; 48 public ScriptAPI api;
50 49
50 public log4net.ILog Log
51 {
52 get { return m_log; }
53 }
54
51 public ScriptInfo(Scene scene) 55 public ScriptInfo(Scene scene)
52 { 56 {
53 world = scene; 57 world = scene;
54 events = world.EventManager; 58 events = world.EventManager;
55 logger = MainLog.Instance;
56 api = new ScriptAPI(world, LLUUID.Zero); 59 api = new ScriptAPI(world, LLUUID.Zero);
57 } 60 }
58 61