add log4net

master
Christopher 2020-06-28 13:27:06 +02:00
parent 86f2db6e7f
commit 6b8cf3bb71
2 changed files with 4 additions and 0 deletions

View File

@ -13,6 +13,7 @@
<ReferencePath>../../../bin</ReferencePath>
<Reference name="System" localCopy="false" />
<Reference name="Mono.Addins.dll" path="../../../bin" />
<Reference name="log4net.dll" path="../../../bin"/>
<Reference name="Nini.dll" path="../../../bin" />
<Reference name="OpenMetaverse.dll" path="../../../bin" />
<Reference name="OpenMetaverseTypes.dll" path="../../../bin" />

View File

@ -16,6 +16,7 @@ namespace OpenSim.Modules.TextureFetcher
[Extension(Path = "/OpenSim/RegionModules", NodeName = "RegionModule", Id = "RegionFullPerm")]
class TextureFetcher : INonSharedRegionModule
{
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
Scene m_scene = null;
public string Name
@ -47,6 +48,8 @@ namespace OpenSim.Modules.TextureFetcher
public void RegionLoaded(Scene scene)
{
m_scene = scene;
scene.EventManager.OnObjectAddedToScene += AddObject;
scene.EventManager.OnSceneObjectLoaded += AddObject;
scene.EventManager.OnIncomingSceneObject += AddObject;