From 45fef8589d430fac076e534fdf5635ad4de4cb31 Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Sun, 1 Jun 2008 01:22:19 +0000 Subject: * Move log version printing up into BaseOpenSimServer --- OpenSim/Framework/Servers/BaseOpenSimServer.cs | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'OpenSim/Framework/Servers') diff --git a/OpenSim/Framework/Servers/BaseOpenSimServer.cs b/OpenSim/Framework/Servers/BaseOpenSimServer.cs index 0205e38..c2633f8 100644 --- a/OpenSim/Framework/Servers/BaseOpenSimServer.cs +++ b/OpenSim/Framework/Servers/BaseOpenSimServer.cs @@ -27,6 +27,8 @@ using System; using System.IO; +using System.Reflection; +using log4net; using OpenSim.Framework.Console; using OpenSim.Framework.Statistics; @@ -37,6 +39,8 @@ namespace OpenSim.Framework.Servers /// public abstract class BaseOpenSimServer { + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); + protected ConsoleBase m_console; /// @@ -62,12 +66,18 @@ namespace OpenSim.Framework.Servers public BaseOpenSimServer() { - m_startuptime = DateTime.Now; - + m_startuptime = DateTime.Now; m_version = VersionInfo.Version; - - // FIXME: This should probably occur in a startup method common for all the servers. + } + + /// + /// Performs initialisation of the scene, such as loading configuration from disk. + /// + public virtual void StartUp() + { EnhanceVersionInformation(); + + m_log.Info("[STARTUP]: Version " + m_version + "\n"); } /// -- cgit v1.1