aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Grid/AssetInventoryServer/Plugins/NullMetricsPlugin.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Grid/AssetInventoryServer/Plugins/NullMetricsPlugin.cs')
-rw-r--r--OpenSim/Grid/AssetInventoryServer/Plugins/NullMetricsPlugin.cs28
1 files changed, 16 insertions, 12 deletions
diff --git a/OpenSim/Grid/AssetInventoryServer/Plugins/NullMetricsPlugin.cs b/OpenSim/Grid/AssetInventoryServer/Plugins/NullMetricsPlugin.cs
index caa4efd..39844f4 100644
--- a/OpenSim/Grid/AssetInventoryServer/Plugins/NullMetricsPlugin.cs
+++ b/OpenSim/Grid/AssetInventoryServer/Plugins/NullMetricsPlugin.cs
@@ -28,12 +28,15 @@
28 */ 28 */
29 29
30using System; 30using System;
31using System.Reflection;
31using OpenMetaverse; 32using OpenMetaverse;
33using log4net;
32 34
33namespace OpenSim.Grid.AssetInventoryServer.Plugins 35namespace OpenSim.Grid.AssetInventoryServer.Plugins
34{ 36{
35 public class NullMetricsPlugin : IMetricsProvider 37 public class NullMetricsPlugin : IMetricsProvider
36 { 38 {
39 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
37 AssetInventoryServer server; 40 AssetInventoryServer server;
38 41
39 public NullMetricsPlugin() 42 public NullMetricsPlugin()
@@ -44,72 +47,72 @@ namespace OpenSim.Grid.AssetInventoryServer.Plugins
44 47
45 public void LogAssetMetadataFetch(string extension, BackendResponse response, UUID assetID, DateTime time) 48 public void LogAssetMetadataFetch(string extension, BackendResponse response, UUID assetID, DateTime time)
46 { 49 {
47 Logger.Log.DebugFormat("[{0}] AssetMetadataFetch(): AssetID: {1}, Response: {2}", extension, assetID, response); 50 m_log.DebugFormat("[{0}] AssetMetadataFetch(): AssetID: {1}, Response: {2}", extension, assetID, response);
48 } 51 }
49 52
50 public void LogAssetDataFetch(string extension, BackendResponse response, UUID assetID, int dataSize, DateTime time) 53 public void LogAssetDataFetch(string extension, BackendResponse response, UUID assetID, int dataSize, DateTime time)
51 { 54 {
52 Logger.Log.DebugFormat("[{0}] AssetDataFetch(): AssetID: {1}, DataSize: {2}, Response: {3}", extension, assetID, 55 m_log.DebugFormat("[{0}] AssetDataFetch(): AssetID: {1}, DataSize: {2}, Response: {3}", extension, assetID,
53 dataSize, response); 56 dataSize, response);
54 } 57 }
55 58
56 public void LogAssetCreate(string extension, BackendResponse response, UUID assetID, int dataSize, DateTime time) 59 public void LogAssetCreate(string extension, BackendResponse response, UUID assetID, int dataSize, DateTime time)
57 { 60 {
58 Logger.Log.DebugFormat("[{0}] AssetCreate(): AssetID: {1}, DataSize: {2}, Response: {3}", extension, assetID, 61 m_log.DebugFormat("[{0}] AssetCreate(): AssetID: {1}, DataSize: {2}, Response: {3}", extension, assetID,
59 dataSize, response); 62 dataSize, response);
60 } 63 }
61 64
62 public void LogInventoryFetch(string extension, BackendResponse response, Uri owner, UUID objID, bool folder, DateTime time) 65 public void LogInventoryFetch(string extension, BackendResponse response, Uri owner, UUID objID, bool folder, DateTime time)
63 { 66 {
64 Logger.Log.DebugFormat("[{0}] InventoryFetch(): ObjID: {1}, Folder: {2}, OwnerID: {3}, Response: {4}", extension, 67 m_log.DebugFormat("[{0}] InventoryFetch(): ObjID: {1}, Folder: {2}, OwnerID: {3}, Response: {4}", extension,
65 objID, folder, owner, response); 68 objID, folder, owner, response);
66 } 69 }
67 70
68 public void LogInventoryFetchFolderContents(string extension, BackendResponse response, Uri owner, UUID folderID, DateTime time) 71 public void LogInventoryFetchFolderContents(string extension, BackendResponse response, Uri owner, UUID folderID, DateTime time)
69 { 72 {
70 Logger.Log.DebugFormat("[{0}] InventoryFetchFolderContents(): FolderID: {1}, OwnerID: {2}, Response: {3}", extension, 73 m_log.DebugFormat("[{0}] InventoryFetchFolderContents(): FolderID: {1}, OwnerID: {2}, Response: {3}", extension,
71 folderID, owner, response); 74 folderID, owner, response);
72 } 75 }
73 76
74 public void LogInventoryFetchFolderList(string extension, BackendResponse response, Uri owner, DateTime time) 77 public void LogInventoryFetchFolderList(string extension, BackendResponse response, Uri owner, DateTime time)
75 { 78 {
76 Logger.Log.DebugFormat("[{0}] InventoryFetchFolderList(): OwnerID: {1}, Response: {2}", extension, 79 m_log.DebugFormat("[{0}] InventoryFetchFolderList(): OwnerID: {1}, Response: {2}", extension,
77 owner, response); 80 owner, response);
78 } 81 }
79 82
80 public void LogInventoryFetchInventory(string extension, BackendResponse response, Uri owner, DateTime time) 83 public void LogInventoryFetchInventory(string extension, BackendResponse response, Uri owner, DateTime time)
81 { 84 {
82 Logger.Log.DebugFormat("[{0}] InventoryFetchInventory(): OwnerID: {1}, Response: {2}", extension, 85 m_log.DebugFormat("[{0}] InventoryFetchInventory(): OwnerID: {1}, Response: {2}", extension,
83 owner, response); 86 owner, response);
84 } 87 }
85 88
86 public void LogInventoryFetchActiveGestures(string extension, BackendResponse response, Uri owner, DateTime time) 89 public void LogInventoryFetchActiveGestures(string extension, BackendResponse response, Uri owner, DateTime time)
87 { 90 {
88 Logger.Log.DebugFormat("[{0}] InventoryFetchActiveGestures(): OwnerID: {1}, Response: {2}", extension, 91 m_log.DebugFormat("[{0}] InventoryFetchActiveGestures(): OwnerID: {1}, Response: {2}", extension,
89 owner, response); 92 owner, response);
90 } 93 }
91 94
92 public void LogInventoryCreate(string extension, BackendResponse response, Uri owner, bool folder, DateTime time) 95 public void LogInventoryCreate(string extension, BackendResponse response, Uri owner, bool folder, DateTime time)
93 { 96 {
94 Logger.Log.DebugFormat("[{0}] InventoryCreate(): OwnerID: {1}, Response: {2}", extension, 97 m_log.DebugFormat("[{0}] InventoryCreate(): OwnerID: {1}, Response: {2}", extension,
95 owner, response); 98 owner, response);
96 } 99 }
97 100
98 public void LogInventoryCreateInventory(string extension, BackendResponse response, DateTime time) 101 public void LogInventoryCreateInventory(string extension, BackendResponse response, DateTime time)
99 { 102 {
100 Logger.Log.DebugFormat("[{0}] InventoryCreateInventory(): Response: {1}", extension, 103 m_log.DebugFormat("[{0}] InventoryCreateInventory(): Response: {1}", extension,
101 response); 104 response);
102 } 105 }
103 106
104 public void LogInventoryDelete(string extension, BackendResponse response, Uri owner, UUID objID, bool folder, DateTime time) 107 public void LogInventoryDelete(string extension, BackendResponse response, Uri owner, UUID objID, bool folder, DateTime time)
105 { 108 {
106 Logger.Log.DebugFormat("[{0}] InventoryDelete(): OwnerID: {1}, Folder: {2}, Response: {3}", extension, 109 m_log.DebugFormat("[{0}] InventoryDelete(): OwnerID: {1}, Folder: {2}, Response: {3}", extension,
107 owner, folder, response); 110 owner, folder, response);
108 } 111 }
109 112
110 public void LogInventoryPurgeFolder(string extension, BackendResponse response, Uri owner, UUID folderID, DateTime time) 113 public void LogInventoryPurgeFolder(string extension, BackendResponse response, Uri owner, UUID folderID, DateTime time)
111 { 114 {
112 Logger.Log.DebugFormat("[{0}] InventoryPurgeFolder(): OwnerID: {1}, FolderID: {2}, Response: {3}", extension, 115 m_log.DebugFormat("[{0}] InventoryPurgeFolder(): OwnerID: {1}, FolderID: {2}, Response: {3}", extension,
113 owner, response); 116 owner, response);
114 } 117 }
115 118
@@ -128,6 +131,7 @@ namespace OpenSim.Grid.AssetInventoryServer.Plugins
128 public void Initialise() 131 public void Initialise()
129 { 132 {
130 this.server = null; 133 this.server = null;
134 m_log.Info("[ASSET] Null metrics loaded.");
131 } 135 }
132 136
133 public void Dispose() 137 public void Dispose()