diff options
author | Justin Clarke Casey | 2008-06-01 01:22:19 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2008-06-01 01:22:19 +0000 |
commit | 45fef8589d430fac076e534fdf5635ad4de4cb31 (patch) | |
tree | af0efd8a4bf1102823a624d92b4732cc32919db3 /OpenSim/Framework | |
parent | * Refactor: Split opensim background server into a separate class (diff) | |
download | opensim-SC_OLD-45fef8589d430fac076e534fdf5635ad4de4cb31.zip opensim-SC_OLD-45fef8589d430fac076e534fdf5635ad4de4cb31.tar.gz opensim-SC_OLD-45fef8589d430fac076e534fdf5635ad4de4cb31.tar.bz2 opensim-SC_OLD-45fef8589d430fac076e534fdf5635ad4de4cb31.tar.xz |
* Move log version printing up into BaseOpenSimServer
Diffstat (limited to 'OpenSim/Framework')
-rw-r--r-- | OpenSim/Framework/Servers/BaseOpenSimServer.cs | 18 |
1 files changed, 14 insertions, 4 deletions
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 @@ | |||
27 | 27 | ||
28 | using System; | 28 | using System; |
29 | using System.IO; | 29 | using System.IO; |
30 | using System.Reflection; | ||
31 | using log4net; | ||
30 | using OpenSim.Framework.Console; | 32 | using OpenSim.Framework.Console; |
31 | using OpenSim.Framework.Statistics; | 33 | using OpenSim.Framework.Statistics; |
32 | 34 | ||
@@ -37,6 +39,8 @@ namespace OpenSim.Framework.Servers | |||
37 | /// </summary> | 39 | /// </summary> |
38 | public abstract class BaseOpenSimServer | 40 | public abstract class BaseOpenSimServer |
39 | { | 41 | { |
42 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | ||
43 | |||
40 | protected ConsoleBase m_console; | 44 | protected ConsoleBase m_console; |
41 | 45 | ||
42 | /// <summary> | 46 | /// <summary> |
@@ -62,12 +66,18 @@ namespace OpenSim.Framework.Servers | |||
62 | 66 | ||
63 | public BaseOpenSimServer() | 67 | public BaseOpenSimServer() |
64 | { | 68 | { |
65 | m_startuptime = DateTime.Now; | 69 | m_startuptime = DateTime.Now; |
66 | |||
67 | m_version = VersionInfo.Version; | 70 | m_version = VersionInfo.Version; |
68 | 71 | } | |
69 | // FIXME: This should probably occur in a startup method common for all the servers. | 72 | |
73 | /// <summary> | ||
74 | /// Performs initialisation of the scene, such as loading configuration from disk. | ||
75 | /// </summary> | ||
76 | public virtual void StartUp() | ||
77 | { | ||
70 | EnhanceVersionInformation(); | 78 | EnhanceVersionInformation(); |
79 | |||
80 | m_log.Info("[STARTUP]: Version " + m_version + "\n"); | ||
71 | } | 81 | } |
72 | 82 | ||
73 | /// <summary> | 83 | /// <summary> |