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/InnerScene.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/InnerScene.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/InnerScene.cs | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/OpenSim/Region/Environment/Scenes/InnerScene.cs b/OpenSim/Region/Environment/Scenes/InnerScene.cs index 6c0ed28..49aeaf9 100644 --- a/OpenSim/Region/Environment/Scenes/InnerScene.cs +++ b/OpenSim/Region/Environment/Scenes/InnerScene.cs | |||
@@ -42,6 +42,8 @@ namespace OpenSim.Region.Environment.Scenes | |||
42 | 42 | ||
43 | public class InnerScene | 43 | public class InnerScene |
44 | { | 44 | { |
45 | private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); | ||
46 | |||
45 | #region Events | 47 | #region Events |
46 | 48 | ||
47 | public event PhysicsCrash UnRecoverableError; | 49 | public event PhysicsCrash UnRecoverableError; |
@@ -227,13 +229,13 @@ namespace OpenSim.Region.Environment.Scenes | |||
227 | if (child) | 229 | if (child) |
228 | { | 230 | { |
229 | m_numChildAgents++; | 231 | m_numChildAgents++; |
230 | MainLog.Instance.Verbose("SCENE", m_regInfo.RegionName + ": Creating new child agent."); | 232 | m_log.Info("[SCENE]: " + m_regInfo.RegionName + ": Creating new child agent."); |
231 | } | 233 | } |
232 | else | 234 | else |
233 | { | 235 | { |
234 | m_numRootAgents++; | 236 | m_numRootAgents++; |
235 | MainLog.Instance.Verbose("SCENE", m_regInfo.RegionName + ": Creating new root agent."); | 237 | m_log.Info("[SCENE]: " + m_regInfo.RegionName + ": Creating new root agent."); |
236 | MainLog.Instance.Verbose("SCENE", m_regInfo.RegionName + ": Adding Physical agent."); | 238 | m_log.Info("[SCENE]: " + m_regInfo.RegionName + ": Adding Physical agent."); |
237 | 239 | ||
238 | newAvatar.AddToPhysicalScene(); | 240 | newAvatar.AddToPhysicalScene(); |
239 | } | 241 | } |
@@ -542,7 +544,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
542 | LLVector3 oLoc = ((SceneObjectGroup)ent).AbsolutePosition; | 544 | LLVector3 oLoc = ((SceneObjectGroup)ent).AbsolutePosition; |
543 | float distResult = (float)Util.GetDistanceTo(presence.AbsolutePosition,oLoc); | 545 | float distResult = (float)Util.GetDistanceTo(presence.AbsolutePosition,oLoc); |
544 | 546 | ||
545 | //MainLog.Instance.Verbose("DISTANCE", distResult.ToString()); | 547 | //m_log.Info("[DISTANCE]: " + distResult.ToString()); |
546 | 548 | ||
547 | if (distResult > 60) | 549 | if (distResult > 60) |
548 | { | 550 | { |
@@ -897,9 +899,9 @@ namespace OpenSim.Region.Environment.Scenes | |||
897 | } | 899 | } |
898 | else | 900 | else |
899 | { | 901 | { |
900 | MainLog.Instance.Verbose("SCENE", | 902 | m_log.Info(String.Format("[SCENE]: " + |
901 | "DelinkObjects(): Could not find a root prim out of {0} as given to a delink request!", | 903 | "DelinkObjects(): Could not find a root prim out of {0} as given to a delink request!", |
902 | primIds); | 904 | primIds)); |
903 | } | 905 | } |
904 | } | 906 | } |
905 | 907 | ||
@@ -947,7 +949,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
947 | } | 949 | } |
948 | else | 950 | else |
949 | { | 951 | { |
950 | MainLog.Instance.Warn("SCENE", "Attempted to duplicate nonexistant prim id {0}", GroupID); | 952 | m_log.Warn(String.Format("[SCENE]: Attempted to duplicate nonexistant prim id {0}", GroupID)); |
951 | } | 953 | } |
952 | } | 954 | } |
953 | 955 | ||