diff options
Diffstat (limited to 'OpenSim/ScriptEngine')
-rw-r--r-- | OpenSim/ScriptEngine/Components/DotNetEngine/Scheduler/BaseClassFactory.cs | 4 | ||||
-rw-r--r-- | OpenSim/ScriptEngine/Shared/EventParams.cs | 12 |
2 files changed, 12 insertions, 4 deletions
diff --git a/OpenSim/ScriptEngine/Components/DotNetEngine/Scheduler/BaseClassFactory.cs b/OpenSim/ScriptEngine/Components/DotNetEngine/Scheduler/BaseClassFactory.cs index 93f29d7..3259686 100644 --- a/OpenSim/ScriptEngine/Components/DotNetEngine/Scheduler/BaseClassFactory.cs +++ b/OpenSim/ScriptEngine/Components/DotNetEngine/Scheduler/BaseClassFactory.cs | |||
@@ -108,7 +108,7 @@ namespace OpenSim.ScriptEngine.Components.DotNetEngine.Scheduler | |||
108 | // ilgen.Emit(OpCodes.Call, typeof(string).GetMethod | 108 | // ilgen.Emit(OpCodes.Call, typeof(string).GetMethod |
109 | //("Format", new Type[] { typeof(string), typeof(object) })); | 109 | //("Format", new Type[] { typeof(string), typeof(object) })); |
110 | 110 | ||
111 | // // Console.WriteLine("Hello, World!"); | 111 | // // m_log.Debug("Hello, World!"); |
112 | // // | 112 | // // |
113 | // ilgen.Emit(OpCodes.Call, typeof(Console).GetMethod | 113 | // ilgen.Emit(OpCodes.Call, typeof(Console).GetMethod |
114 | // ("WriteLine", new Type[] { typeof(string) })); | 114 | // ("WriteLine", new Type[] { typeof(string) })); |
@@ -237,4 +237,4 @@ namespace OpenSim.ScriptEngine.Components.DotNetEngine.Scheduler | |||
237 | //string a = ""; | 237 | //string a = ""; |
238 | } | 238 | } |
239 | } | 239 | } |
240 | } \ No newline at end of file | 240 | } |
diff --git a/OpenSim/ScriptEngine/Shared/EventParams.cs b/OpenSim/ScriptEngine/Shared/EventParams.cs index 0962aec..28eaa58 100644 --- a/OpenSim/ScriptEngine/Shared/EventParams.cs +++ b/OpenSim/ScriptEngine/Shared/EventParams.cs | |||
@@ -30,6 +30,8 @@ using System.Collections.Generic; | |||
30 | using System.Text; | 30 | using System.Text; |
31 | using OpenMetaverse; | 31 | using OpenMetaverse; |
32 | using OpenSim.Region.ScriptEngine.Shared; | 32 | using OpenSim.Region.ScriptEngine.Shared; |
33 | using log4net; | ||
34 | using System.Reflection; | ||
33 | 35 | ||
34 | namespace OpenSim.ScriptEngine.Shared | 36 | namespace OpenSim.ScriptEngine.Shared |
35 | { | 37 | { |
@@ -38,6 +40,7 @@ namespace OpenSim.ScriptEngine.Shared | |||
38 | /// </summary> | 40 | /// </summary> |
39 | public class EventParams | 41 | public class EventParams |
40 | { | 42 | { |
43 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | ||
41 | public string EventName; | 44 | public string EventName; |
42 | public Object[] Params; | 45 | public Object[] Params; |
43 | public Region.ScriptEngine.Shared.DetectParams[] DetectParams; | 46 | public Region.ScriptEngine.Shared.DetectParams[] DetectParams; |
@@ -66,9 +69,14 @@ namespace OpenSim.ScriptEngine.Shared | |||
66 | } | 69 | } |
67 | public void test2(string functionName, params object[] args) | 70 | public void test2(string functionName, params object[] args) |
68 | { | 71 | { |
69 | System.Console.WriteLine(functionName, args); | 72 | String logMessage = functionName; |
73 | foreach (object arg in args) | ||
74 | { | ||
75 | logMessage +=", "+arg; | ||
76 | } | ||
77 | m_log.Debug(logMessage); | ||
70 | } | 78 | } |
71 | 79 | ||
72 | 80 | ||
73 | } | 81 | } |
74 | } \ No newline at end of file | 82 | } |