Update of /cvsroot/springnet/Spring.Net/src/Spring/Spring.Web/Caching
In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv5120
Modified Files:
AspNetCache.cs
Log Message:
added logging
Index: AspNetCache.cs
===================================================================
RCS file: /cvsroot/springnet/Spring.Net/src/Spring/Spring.Web/Caching/AspNetCache.cs,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** AspNetCache.cs 25 Aug 2007 10:21:38 -0000 1.5
--- AspNetCache.cs 14 Sep 2007 18:26:26 -0000 1.6
***************
*** 23,26 ****
--- 23,27 ----
using System.Web;
using System.Web.Caching;
+ using Common.Logging;
using Spring.Util;
***************
*** 105,108 ****
--- 106,111 ----
#region Fields
+ // logger instance for this class
+ private static readonly ILog Log = LogManager.GetLogger(typeof(AspNetCache));
// the concrete cache implementation
private readonly IRuntimeCache _cache;
***************
*** 204,207 ****
--- 207,211 ----
if (key != null)
{
+ if (Log.IsDebugEnabled) Log.Debug(string.Format("removing item '{0}' from cache '{1}'", key, this._cacheName));
_cache.Remove(GenerateKey(key));
}
***************
*** 273,276 ****
--- 277,282 ----
AssertUtils.State( TimeSpan.Zero <= timeToLive, "timeToLive" );
+ if (Log.IsDebugEnabled) Log.Debug(string.Format("adding item '{0}' to cache '{1}'", key, this._cacheName));
+
if (TimeSpan.Zero < timeToLive)
{
|