aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Grid/AssetInventoryServer/Plugins/BrowseFrontendPlugin.cs
diff options
context:
space:
mode:
authorMike Mazur2009-02-16 02:27:43 +0000
committerMike Mazur2009-02-16 02:27:43 +0000
commit5277fc64c07da92014e749be40aa837193a26495 (patch)
tree5351a96ac5d612560dc63d8c8585237d9dc80d27 /OpenSim/Grid/AssetInventoryServer/Plugins/BrowseFrontendPlugin.cs
parent- remove dependency on ExtensionLoader.dll (DBConnString.cs can go) (diff)
downloadopensim-SC_OLD-5277fc64c07da92014e749be40aa837193a26495.zip
opensim-SC_OLD-5277fc64c07da92014e749be40aa837193a26495.tar.gz
opensim-SC_OLD-5277fc64c07da92014e749be40aa837193a26495.tar.bz2
opensim-SC_OLD-5277fc64c07da92014e749be40aa837193a26495.tar.xz
- change AssetInventoryServer config from XML to INI
- convert AssetInventoryServer logging to OpenSim's log4net - updated AssetInventoryServer.ini.example file
Diffstat (limited to '')
-rw-r--r--OpenSim/Grid/AssetInventoryServer/Plugins/BrowseFrontendPlugin.cs7
1 files changed, 5 insertions, 2 deletions
diff --git a/OpenSim/Grid/AssetInventoryServer/Plugins/BrowseFrontendPlugin.cs b/OpenSim/Grid/AssetInventoryServer/Plugins/BrowseFrontendPlugin.cs
index bb38d5d..09e91dc 100644
--- a/OpenSim/Grid/AssetInventoryServer/Plugins/BrowseFrontendPlugin.cs
+++ b/OpenSim/Grid/AssetInventoryServer/Plugins/BrowseFrontendPlugin.cs
@@ -29,6 +29,7 @@
29 29
30using System; 30using System;
31using System.IO; 31using System.IO;
32using System.Reflection;
32using System.Collections.Generic; 33using System.Collections.Generic;
33using System.Collections.Specialized; 34using System.Collections.Specialized;
34using System.Net; 35using System.Net;
@@ -37,11 +38,13 @@ using System.Web;
37using OpenMetaverse; 38using OpenMetaverse;
38using OpenSim.Framework; 39using OpenSim.Framework;
39using OpenSim.Framework.Servers; 40using OpenSim.Framework.Servers;
41using log4net;
40 42
41namespace OpenSim.Grid.AssetInventoryServer.Plugins 43namespace OpenSim.Grid.AssetInventoryServer.Plugins
42{ 44{
43 public class BrowseFrontendPlugin : IAssetInventoryServerPlugin 45 public class BrowseFrontendPlugin : IAssetInventoryServerPlugin
44 { 46 {
47 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
45 AssetInventoryServer m_server; 48 AssetInventoryServer m_server;
46 49
47 public BrowseFrontendPlugin() 50 public BrowseFrontendPlugin()
@@ -58,7 +61,7 @@ namespace OpenSim.Grid.AssetInventoryServer.Plugins
58 //server.HttpServer.AddHandler("get", null, @"(^/$)|(^/\?.*)", BrowseRequestHandler); 61 //server.HttpServer.AddHandler("get", null, @"(^/$)|(^/\?.*)", BrowseRequestHandler);
59 m_server.HttpServer.AddStreamHandler(new BrowseRequestHandler(server)); 62 m_server.HttpServer.AddStreamHandler(new BrowseRequestHandler(server));
60 63
61 Logger.Log.Info("[ASSET] Browser Frontend loaded."); 64 m_log.Info("[ASSET] Browser Frontend loaded.");
62 } 65 }
63 66
64 /// <summary> 67 /// <summary>
@@ -66,7 +69,7 @@ namespace OpenSim.Grid.AssetInventoryServer.Plugins
66 /// </summary> 69 /// </summary>
67 public void Initialise() 70 public void Initialise()
68 { 71 {
69 Logger.Log.InfoFormat("[ASSET]: {0} cannot be default-initialized!", Name); 72 m_log.InfoFormat("[ASSET]: {0} cannot be default-initialized!", Name);
70 throw new PluginNotInitialisedException(Name); 73 throw new PluginNotInitialisedException(Name);
71 } 74 }
72 75