log4net SDK Reference

StringMatchFilter Members

StringMatchFilter overview

Public Instance Constructors

StringMatchFilter Constructor Default constructor

Public Instance Properties

AcceptOnMatch Accept when matching StringToMatch or RegexToMatch
Next (inherited from FilterSkeleton) Property to get and set the next filter
RegexToMatch Sets the regular expression to match
StringToMatch Sets the static string to match

Public Instance Methods

ActivateOptions Initialize and precompile the Regex if required
Decide 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 Flag to indicate the behavior when we have a match
m_regexToMatch A regex object to match (generated from m_stringRegexToMatch)
m_stringRegexToMatch A string regex to match
m_stringToMatch 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

StringMatchFilter Class | log4net.Filter Namespace