logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dpsen...@apache.org
Subject svn commit: r1511193 - /logging/log4net/trunk/src/Util/ThreadContextProperties.cs
Date Wed, 07 Aug 2013 06:54:28 GMT
Author: dpsenner
Date: Wed Aug  7 06:54:28 2013
New Revision: 1511193

URL: http://svn.apache.org/r1511193
Log:
LOG4NET-386 added a method in ThreadContextProperties to retrieve the property keys

Modified:
    logging/log4net/trunk/src/Util/ThreadContextProperties.cs

Modified: logging/log4net/trunk/src/Util/ThreadContextProperties.cs
URL: http://svn.apache.org/viewvc/logging/log4net/trunk/src/Util/ThreadContextProperties.cs?rev=1511193&r1=1511192&r2=1511193&view=diff
==============================================================================
--- logging/log4net/trunk/src/Util/ThreadContextProperties.cs (original)
+++ logging/log4net/trunk/src/Util/ThreadContextProperties.cs Wed Aug  7 06:54:28 2013
@@ -114,6 +114,22 @@ namespace log4net.Util
 		}
 
 		/// <summary>
+		/// Get the keys stored in the properties.
+		/// </summary>
+		/// <para>
+		/// Gets the keys stored in the properties.
+		/// </para>
+		/// <returns>a set of the defined keys</returns>
+		public string[] GetKeys()
+		{
+			if (_dictionary != null)
+			{
+				return _dictionary.GetKeys();
+			}
+			return null;
+		}
+
+		/// <summary>
 		/// Clear all properties
 		/// </summary>
 		/// <remarks>



Mime
View raw message