diff options
author | Jeff Ames | 2009-02-22 01:26:18 +0000 |
---|---|---|
committer | Jeff Ames | 2009-02-22 01:26:18 +0000 |
commit | 818af9d4827ea66358abbc3929d20e09861c7306 (patch) | |
tree | 097254f7d203fff8547c30061540bc01e4f84d12 /OpenSim/Region/ScriptEngine/DotNetEngine/Common.cs | |
parent | Addresses some issues with appearance after TPs. Appearance.Owner was not bei... (diff) | |
download | opensim-SC_OLD-818af9d4827ea66358abbc3929d20e09861c7306.zip opensim-SC_OLD-818af9d4827ea66358abbc3929d20e09861c7306.tar.gz opensim-SC_OLD-818af9d4827ea66358abbc3929d20e09861c7306.tar.bz2 opensim-SC_OLD-818af9d4827ea66358abbc3929d20e09861c7306.tar.xz |
Refactor log4net logger handling in script engine. (#3148)
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ScriptEngine/DotNetEngine/Common.cs | 9 |
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 | ||
28 | using System.Reflection; | ||
29 | using log4net; | ||
30 | |||
28 | namespace OpenSim.Region.ScriptEngine.DotNetEngine | 31 | namespace 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 | } |