diff options
author | Jeff Ames | 2008-02-05 19:44:27 +0000 |
---|---|---|
committer | Jeff Ames | 2008-02-05 19:44:27 +0000 |
commit | 6ed5283bc06a62f38eb517e67b975832b603bf61 (patch) | |
tree | e5f635018789b73a99ddeca0883a68368fa5eece /OpenSim/Region/Environment/StorageManager.cs | |
parent | Cut down on the number of packets sent during terraforming. Terraforming shou... (diff) | |
download | opensim-SC-6ed5283bc06a62f38eb517e67b975832b603bf61.zip opensim-SC-6ed5283bc06a62f38eb517e67b975832b603bf61.tar.gz opensim-SC-6ed5283bc06a62f38eb517e67b975832b603bf61.tar.bz2 opensim-SC-6ed5283bc06a62f38eb517e67b975832b603bf61.tar.xz |
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.
Diffstat (limited to 'OpenSim/Region/Environment/StorageManager.cs')
-rw-r--r-- | OpenSim/Region/Environment/StorageManager.cs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/OpenSim/Region/Environment/StorageManager.cs b/OpenSim/Region/Environment/StorageManager.cs index 1c41373..f15bbdb 100644 --- a/OpenSim/Region/Environment/StorageManager.cs +++ b/OpenSim/Region/Environment/StorageManager.cs | |||
@@ -35,6 +35,8 @@ namespace OpenSim.Region.Environment | |||
35 | { | 35 | { |
36 | public class StorageManager | 36 | public class StorageManager |
37 | { | 37 | { |
38 | private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); | ||
39 | |||
38 | private IRegionDataStore m_dataStore; | 40 | private IRegionDataStore m_dataStore; |
39 | 41 | ||
40 | public IRegionDataStore DataStore | 42 | public IRegionDataStore DataStore |
@@ -49,7 +51,7 @@ namespace OpenSim.Region.Environment | |||
49 | 51 | ||
50 | public StorageManager(string dllName, string connectionstring, bool persistPrimInventories) | 52 | public StorageManager(string dllName, string connectionstring, bool persistPrimInventories) |
51 | { | 53 | { |
52 | MainLog.Instance.Verbose("DATASTORE", "Attempting to load " + dllName); | 54 | m_log.Info("[DATASTORE]: Attempting to load " + dllName); |
53 | Assembly pluginAssembly = Assembly.LoadFrom(dllName); | 55 | Assembly pluginAssembly = Assembly.LoadFrom(dllName); |
54 | 56 | ||
55 | foreach (Type pluginType in pluginAssembly.GetTypes()) | 57 | foreach (Type pluginType in pluginAssembly.GetTypes()) |
@@ -66,7 +68,7 @@ namespace OpenSim.Region.Environment | |||
66 | 68 | ||
67 | m_dataStore = plug; | 69 | m_dataStore = plug; |
68 | 70 | ||
69 | MainLog.Instance.Verbose("DATASTORE", "Added IRegionDataStore Interface"); | 71 | m_log.Info("[DATASTORE]: Added IRegionDataStore Interface"); |
70 | } | 72 | } |
71 | } | 73 | } |
72 | } | 74 | } |