You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by dp...@apache.org on 2013/08/07 15:32:36 UTC

svn commit: r1511303 - /logging/log4net/trunk/src/Core/LoggingEvent.cs

Author: dpsenner
Date: Wed Aug  7 13:32:36 2013
New Revision: 1511303

URL: http://svn.apache.org/r1511303
Log:
LOG4NET-205 fixed LoggingEvent to put the UserNameProperty and the IdentityProperty into the composite properties dictionary

This way the PropertyFilter can look up and filter by UserName and Identity.

Modified:
    logging/log4net/trunk/src/Core/LoggingEvent.cs

Modified: logging/log4net/trunk/src/Core/LoggingEvent.cs
URL: http://svn.apache.org/viewvc/logging/log4net/trunk/src/Core/LoggingEvent.cs?rev=1511303&r1=1511302&r2=1511303&view=diff
==============================================================================
--- logging/log4net/trunk/src/Core/LoggingEvent.cs (original)
+++ logging/log4net/trunk/src/Core/LoggingEvent.cs Wed Aug  7 13:32:36 2013
@@ -1335,6 +1335,12 @@ namespace log4net.Core
 
 			// TODO: Add Repository Properties
 
+			// event properties
+			PropertiesDictionary eventProperties = new PropertiesDictionary();
+			eventProperties[UserNameProperty] = UserName;
+			eventProperties[IdentityProperty] = Identity;
+			m_compositeProperties.Add(eventProperties);
+
 			m_compositeProperties.Add(GlobalContext.Properties.GetReadOnlyProperties());
 		}