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/Framework/Data.DB4o/DB4oUserData.cs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'OpenSim/Framework/Data.DB4o/DB4oUserData.cs') diff --git a/OpenSim/Framework/Data.DB4o/DB4oUserData.cs b/OpenSim/Framework/Data.DB4o/DB4oUserData.cs index 6059cbe..35a3635 100644 --- a/OpenSim/Framework/Data.DB4o/DB4oUserData.cs +++ b/OpenSim/Framework/Data.DB4o/DB4oUserData.cs @@ -37,6 +37,8 @@ namespace OpenSim.Framework.Data.DB4o /// public class DB4oUserData : IUserData { + private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + /// /// The database manager /// @@ -143,22 +145,22 @@ namespace OpenSim.Framework.Data.DB4o public void AddNewUserFriend(LLUUID friendlistowner, LLUUID friend, uint perms) { - //MainLog.Instance.Verbose("FRIEND", "Stub AddNewUserFriend called"); + //m_log.Info("[FRIEND]: Stub AddNewUserFriend called"); } public void RemoveUserFriend(LLUUID friendlistowner, LLUUID friend) { - //MainLog.Instance.Verbose("FRIEND", "Stub RemoveUserFriend called"); + //m_log.Info("[FRIEND]: Stub RemoveUserFriend called"); } public void UpdateUserFriendPerms(LLUUID friendlistowner, LLUUID friend, uint perms) { - //MainLog.Instance.Verbose("FRIEND", "Stub UpdateUserFriendPerms called"); + //m_log.Info("[FRIEND]: Stub UpdateUserFriendPerms called"); } public List GetUserFriendList(LLUUID friendlistowner) { - //MainLog.Instance.Verbose("FRIEND", "Stub GetUserFriendList called"); + //m_log.Info("[FRIEND]: Stub GetUserFriendList called"); return new List(); } @@ -166,7 +168,7 @@ namespace OpenSim.Framework.Data.DB4o public void UpdateUserCurrentRegion(LLUUID avatarid, LLUUID regionuuid) { - //MainLog.Instance.Verbose("USER", "Stub UpdateUserCUrrentRegion called"); + //m_log.Info("[USER]: Stub UpdateUserCUrrentRegion called"); } -- cgit v1.1