aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/DotNetEngine/Common.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/ScriptEngine/DotNetEngine/Common.cs9
1 files changed, 7 insertions, 2 deletions
diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/Common.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/Common.cs
index 56b4c8e..f10722b 100644
--- a/OpenSim/Region/ScriptEngine/DotNetEngine/Common.cs
+++ b/OpenSim/Region/ScriptEngine/DotNetEngine/Common.cs
@@ -25,22 +25,27 @@
25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */ 26 */
27 27
28using System.Reflection;
29using log4net;
30
28namespace OpenSim.Region.ScriptEngine.DotNetEngine 31namespace OpenSim.Region.ScriptEngine.DotNetEngine
29{ 32{
30 public static class Common 33 public static class Common
31 { 34 {
35 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
36
32 public static ScriptEngine mySE; 37 public static ScriptEngine mySE;
33 38
34 // This class just contains some static log stuff used for debugging. 39 // This class just contains some static log stuff used for debugging.
35 40
36 public static void SendToDebug(string message) 41 public static void SendToDebug(string message)
37 { 42 {
38 mySE.Log.Info("[" + mySE.ScriptEngineName + "]: Debug: " + message); 43 m_log.Info("[" + mySE.ScriptEngineName + "]: Debug: " + message);
39 } 44 }
40 45
41 public static void SendToLog(string message) 46 public static void SendToLog(string message)
42 { 47 {
43 mySE.Log.Info("[" + mySE.ScriptEngineName + "]: LOG: " + message); 48 m_log.Info("[" + mySE.ScriptEngineName + "]: LOG: " + message);
44 } 49 }
45 } 50 }
46} 51}