From 8f55b9d735fbc975ce7a4b54e972c17ffbfb1f49 Mon Sep 17 00:00:00 2001 From: Charles Krinke Date: Sun, 22 Feb 2009 20:52:55 +0000 Subject: Mantis#3218. Thank you kindly, TLaukkan (Tommil) for a patch that: * Added log4net dependency to physxplugin in prebuild.xml. * Added missing m_log fields to classes. * Replaced Console.WriteLine with appropriate m_log.Xxxx * Tested that nant test target runs succesfully. * Tested that local opensim sandbox starts up without errors. --- OpenSim/Grid/AssetInventoryServer/Main.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'OpenSim/Grid/AssetInventoryServer') diff --git a/OpenSim/Grid/AssetInventoryServer/Main.cs b/OpenSim/Grid/AssetInventoryServer/Main.cs index 67aaf95..598b754 100644 --- a/OpenSim/Grid/AssetInventoryServer/Main.cs +++ b/OpenSim/Grid/AssetInventoryServer/Main.cs @@ -28,11 +28,15 @@ using System; using Nini.Config; using log4net.Config; +using log4net; +using System.Reflection; namespace OpenSim.Grid.AssetInventoryServer { class MainEntry { + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); + static void Main(string[] args) { XmlConfigurator.Configure(); @@ -46,7 +50,7 @@ namespace OpenSim.Grid.AssetInventoryServer Console.CancelKeyPress += delegate(object sender, ConsoleCancelEventArgs e) { - Console.WriteLine("AssetInventory server is shutting down..."); + m_log.Info("AssetInventory server is shutting down..."); server.Shutdown(); Environment.Exit(0); }; -- cgit v1.1