diff options
author | Tedd Hansen | 2007-08-14 15:59:36 +0000 |
---|---|---|
committer | Tedd Hansen | 2007-08-14 15:59:36 +0000 |
commit | afaa12a9e2fd24c03c0f46716e9758cc591703c2 (patch) | |
tree | f6f6977314ab65d88822b592378806142090e99d /OpenSim/Region/ScriptEngine/DotNetEngine/Common.cs | |
parent | More inventory work, should be able to now create new inventory folders and t... (diff) | |
download | opensim-SC-afaa12a9e2fd24c03c0f46716e9758cc591703c2.zip opensim-SC-afaa12a9e2fd24c03c0f46716e9758cc591703c2.tar.gz opensim-SC-afaa12a9e2fd24c03c0f46716e9758cc591703c2.tar.bz2 opensim-SC-afaa12a9e2fd24c03c0f46716e9758cc591703c2.tar.xz |
ScriptEngine: Some error handling, logs to logger
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ScriptEngine/DotNetEngine/Common.cs | 5 |
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 | } |