aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/DotNetEngine/Common.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ScriptEngine/DotNetEngine/Common.cs')
-rw-r--r--OpenSim/Region/ScriptEngine/DotNetEngine/Common.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/Common.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/Common.cs
index 6df5b9f..49367f6 100644
--- a/OpenSim/Region/ScriptEngine/DotNetEngine/Common.cs
+++ b/OpenSim/Region/ScriptEngine/DotNetEngine/Common.cs
@@ -35,6 +35,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine
35 public static class Common 35 public static class Common
36 { 36 {
37 static public bool Debug = true; 37 static public bool Debug = true;
38 static public ScriptEngine mySE;
38 39
39 //public delegate void SendToDebugEventDelegate(string Message); 40 //public delegate void SendToDebugEventDelegate(string Message);
40 //public delegate void SendToLogEventDelegate(string Message); 41 //public delegate void SendToLogEventDelegate(string Message);
@@ -44,13 +45,13 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine
44 static public void SendToDebug(string Message) 45 static public void SendToDebug(string Message)
45 { 46 {
46 //if (Debug == true) 47 //if (Debug == true)
47 Console.WriteLine("SE:Debug: " + Message); 48 mySE.m_logger.Verbose("ScriptEngine", "Debug: " + Message);
48 //SendToDebugEvent("\r\n" + DateTime.Now.ToString("[HH:mm:ss] ") + Message); 49 //SendToDebugEvent("\r\n" + DateTime.Now.ToString("[HH:mm:ss] ") + Message);
49 } 50 }
50 static public void SendToLog(string Message) 51 static public void SendToLog(string Message)
51 { 52 {
52 //if (Debug == true) 53 //if (Debug == true)
53 Console.WriteLine("SE:LOG: " + Message); 54 mySE.m_logger.Verbose("ScriptEngine", "LOG: " + Message);
54 //SendToLogEvent("\r\n" + DateTime.Now.ToString("[HH:mm:ss] ") + Message); 55 //SendToLogEvent("\r\n" + DateTime.Now.ToString("[HH:mm:ss] ") + Message);
55 } 56 }
56 } 57 }