diff options
Diffstat (limited to 'OpenSim/ScriptEngine/Shared')
-rw-r--r-- | OpenSim/ScriptEngine/Shared/EventParams.cs | 12 |
1 files changed, 10 insertions, 2 deletions
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 | } |