From 6ed5283bc06a62f38eb517e67b975832b603bf61 Mon Sep 17 00:00:00 2001 From: Jeff Ames Date: Tue, 5 Feb 2008 19:44:27 +0000 Subject: 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. --- OpenSim/Region/Environment/Scenes/AvatarAnimations.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'OpenSim/Region/Environment/Scenes/AvatarAnimations.cs') diff --git a/OpenSim/Region/Environment/Scenes/AvatarAnimations.cs b/OpenSim/Region/Environment/Scenes/AvatarAnimations.cs index 18a87cb..daaa319 100644 --- a/OpenSim/Region/Environment/Scenes/AvatarAnimations.cs +++ b/OpenSim/Region/Environment/Scenes/AvatarAnimations.cs @@ -35,6 +35,8 @@ namespace OpenSim.Region.Environment.Scenes { public class AvatarAnimations { + private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + public Dictionary AnimsLLUUID = new Dictionary(); public Dictionary AnimsNames = new Dictionary(); @@ -44,7 +46,7 @@ namespace OpenSim.Region.Environment.Scenes public void LoadAnims() { - //MainLog.Instance.Verbose("CLIENT", "Loading avatar animations"); + //m_log.Info("[CLIENT]: Loading avatar animations"); using (XmlTextReader reader = new XmlTextReader("data/avataranimations.xml")) { XmlDocument doc = new XmlDocument(); @@ -58,7 +60,7 @@ namespace OpenSim.Region.Environment.Scenes } } - // MainLog.Instance.Verbose("CLIENT", "Loaded " + AnimsLLUUID.Count.ToString() + " animation(s)"); + // m_log.Info("[CLIENT]: Loaded " + AnimsLLUUID.Count.ToString() + " animation(s)"); try { @@ -70,7 +72,7 @@ namespace OpenSim.Region.Environment.Scenes } catch (InvalidOperationException) { - MainLog.Instance.Warn("AVATAR", "Unable to load animation names for an Avatar"); + m_log.Warn("[AVATAR]: Unable to load animation names for an Avatar"); } } } -- cgit v1.1