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/Communications/Cache/AssetServer.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'OpenSim/Framework/Communications/Cache/AssetServer.cs') diff --git a/OpenSim/Framework/Communications/Cache/AssetServer.cs b/OpenSim/Framework/Communications/Cache/AssetServer.cs index 575e80a..c1cf100 100644 --- a/OpenSim/Framework/Communications/Cache/AssetServer.cs +++ b/OpenSim/Framework/Communications/Cache/AssetServer.cs @@ -35,6 +35,8 @@ namespace OpenSim.Framework.Communications.Cache { public class LocalAssetServer : AssetServerBase { + private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private IObjectContainer db; public LocalAssetServer() @@ -43,7 +45,7 @@ namespace OpenSim.Framework.Communications.Cache yapfile = File.Exists(Path.Combine(Util.dataDir(), "regionassets.yap")); db = Db4oFactory.OpenFile(Path.Combine(Util.dataDir(), "regionassets.yap")); - MainLog.Instance.Verbose("ASSETS", "Db4 Asset database creation"); + m_log.Info("[ASSETS]: Db4 Asset database creation"); if (!yapfile) { @@ -67,7 +69,7 @@ namespace OpenSim.Framework.Communications.Cache if (db != null) { - MainLog.Instance.Verbose("ASSETSERVER", "Closing local asset server database"); + m_log.Info("[ASSETSERVER]: Closing local asset server database"); db.Close(); } } @@ -120,7 +122,7 @@ namespace OpenSim.Framework.Communications.Cache protected virtual void SetUpAssetDatabase() { - MainLog.Instance.Verbose("LOCAL ASSET SERVER", "Setting up asset database"); + m_log.Info("[LOCAL ASSET SERVER]: Setting up asset database"); base.LoadDefaultAssets(); } -- cgit v1.1