mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 08:55:56 +08:00
Converted logging to use log4net.
Changed LogBase to ConsoleBase, which handles console I/O. This is mostly an in-place conversion, so lots of refactoring can still be done.
This commit is contained in:
@@ -41,7 +41,6 @@ namespace OpenSim.Region.ScriptEngine.Common
|
||||
{
|
||||
public class LSL_BaseClass : MarshalByRefObject, LSL_BuiltIn_Commands_Interface, IScript
|
||||
{
|
||||
|
||||
//
|
||||
// Included as base for any LSL-script that is compiled.
|
||||
// Any function added here will be accessible to the LSL script. But it must also be added to "LSL_BuiltIn_Commands_Interface" in "OpenSim.Region.ScriptEngine.Common" class.
|
||||
@@ -49,6 +48,8 @@ namespace OpenSim.Region.ScriptEngine.Common
|
||||
// Security note: This script will be running inside an restricted AppDomain. Currently AppDomain is not very restricted.
|
||||
//
|
||||
|
||||
private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
|
||||
|
||||
// Object never expires
|
||||
public override Object InitializeLifetimeService()
|
||||
{
|
||||
@@ -112,7 +113,7 @@ namespace OpenSim.Region.ScriptEngine.Common
|
||||
{
|
||||
m_LSL_Functions = LSL_Functions;
|
||||
|
||||
//MainLog.Instance.Notice(ScriptEngineName, "LSL_BaseClass.Start() called.");
|
||||
//m_log.Info(ScriptEngineName, "LSL_BaseClass.Start() called.");
|
||||
|
||||
// Get this AppDomain's settings and display some of them.
|
||||
AppDomainSetup ads = AppDomain.CurrentDomain.SetupInformation;
|
||||
|
||||
Reference in New Issue
Block a user