diff options
author | Jeff Ames | 2008-02-05 19:44:27 +0000 |
---|---|---|
committer | Jeff Ames | 2008-02-05 19:44:27 +0000 |
commit | 6ed5283bc06a62f38eb517e67b975832b603bf61 (patch) | |
tree | e5f635018789b73a99ddeca0883a68368fa5eece /OpenSim/Region/Environment/Scenes/AvatarAnimations.cs | |
parent | Cut down on the number of packets sent during terraforming. Terraforming shou... (diff) | |
download | opensim-SC_OLD-6ed5283bc06a62f38eb517e67b975832b603bf61.zip opensim-SC_OLD-6ed5283bc06a62f38eb517e67b975832b603bf61.tar.gz opensim-SC_OLD-6ed5283bc06a62f38eb517e67b975832b603bf61.tar.bz2 opensim-SC_OLD-6ed5283bc06a62f38eb517e67b975832b603bf61.tar.xz |
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.
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/AvatarAnimations.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/AvatarAnimations.cs | 8 |
1 files changed, 5 insertions, 3 deletions
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 | |||
35 | { | 35 | { |
36 | public class AvatarAnimations | 36 | public class AvatarAnimations |
37 | { | 37 | { |
38 | private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); | ||
39 | |||
38 | public Dictionary<string, LLUUID> AnimsLLUUID = new Dictionary<string, LLUUID>(); | 40 | public Dictionary<string, LLUUID> AnimsLLUUID = new Dictionary<string, LLUUID>(); |
39 | public Dictionary<LLUUID, string> AnimsNames = new Dictionary<LLUUID, string>(); | 41 | public Dictionary<LLUUID, string> AnimsNames = new Dictionary<LLUUID, string>(); |
40 | 42 | ||
@@ -44,7 +46,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
44 | 46 | ||
45 | public void LoadAnims() | 47 | public void LoadAnims() |
46 | { | 48 | { |
47 | //MainLog.Instance.Verbose("CLIENT", "Loading avatar animations"); | 49 | //m_log.Info("[CLIENT]: Loading avatar animations"); |
48 | using (XmlTextReader reader = new XmlTextReader("data/avataranimations.xml")) | 50 | using (XmlTextReader reader = new XmlTextReader("data/avataranimations.xml")) |
49 | { | 51 | { |
50 | XmlDocument doc = new XmlDocument(); | 52 | XmlDocument doc = new XmlDocument(); |
@@ -58,7 +60,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
58 | } | 60 | } |
59 | } | 61 | } |
60 | 62 | ||
61 | // MainLog.Instance.Verbose("CLIENT", "Loaded " + AnimsLLUUID.Count.ToString() + " animation(s)"); | 63 | // m_log.Info("[CLIENT]: Loaded " + AnimsLLUUID.Count.ToString() + " animation(s)"); |
62 | 64 | ||
63 | try | 65 | try |
64 | { | 66 | { |
@@ -70,7 +72,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
70 | } | 72 | } |
71 | catch (InvalidOperationException) | 73 | catch (InvalidOperationException) |
72 | { | 74 | { |
73 | MainLog.Instance.Warn("AVATAR", "Unable to load animation names for an Avatar"); | 75 | m_log.Warn("[AVATAR]: Unable to load animation names for an Avatar"); |
74 | } | 76 | } |
75 | } | 77 | } |
76 | } | 78 | } |