log4net SDK Reference

MdcFilter Members

MdcFilter overview

Public Instance Constructors

MdcFilter Constructor Initializes a new instance of the MdcFilter class.

Public Instance Properties

AcceptOnMatch (inherited from StringMatchFilter) Accept when matching StringToMatch or RegexToMatch
Key (inherited from PropertyFilter) The key to lookup in the event properties and then match against.
Next (inherited from FilterSkeleton) Property to get and set the next filter
RegexToMatch (inherited from StringMatchFilter) Sets the regular expression to match
StringToMatch (inherited from StringMatchFilter) Sets the static string to match

Public Instance Methods

ActivateOptions (inherited from StringMatchFilter) Initialize and precompile the Regex if required
Decide (inherited from PropertyFilter) Check if this filter should allow the event to be logged
Equals (inherited from Object) Determines whether the specified Object is equal to the current Object.
GetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object) Gets the Type of the current instance.
ToString (inherited from Object) Returns a String that represents the current Object.

Protected Instance Fields

m_acceptOnMatch (inherited from StringMatchFilter) Flag to indicate the behavior when we have a match
m_regexToMatch (inherited from StringMatchFilter) A regex object to match (generated from m_stringRegexToMatch)
m_stringRegexToMatch (inherited from StringMatchFilter) A string regex to match
m_stringToMatch (inherited from StringMatchFilter) The string to substring match against the message

Protected Instance Methods

Finalize (inherited from Object) Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.

See Also

MdcFilter Class | log4net.Filter Namespace