mirror of
https://github.com/opensim/opensim.git
synced 2026-05-16 03:36:04 +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:
@@ -36,23 +36,26 @@ namespace OpenSim.Region.ExtensionsScriptModule
|
||||
/// </summary>
|
||||
public class ScriptInfo
|
||||
{
|
||||
private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
|
||||
|
||||
// Reference to world.eventsManager provided for convenience
|
||||
public EventManager events;
|
||||
|
||||
// The main world
|
||||
public Scene world;
|
||||
|
||||
// The console
|
||||
public LogBase logger;
|
||||
|
||||
// API Access
|
||||
public ScriptAPI api;
|
||||
|
||||
public log4net.ILog Log
|
||||
{
|
||||
get { return m_log; }
|
||||
}
|
||||
|
||||
public ScriptInfo(Scene scene)
|
||||
{
|
||||
world = scene;
|
||||
events = world.EventManager;
|
||||
logger = MainLog.Instance;
|
||||
api = new ScriptAPI(world, LLUUID.Zero);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user