PropertyFilter ClassApache log4netâ„¢ SDK Documentation
Simple filter to match a string an event property
Inheritance Hierarchy

System.Object
  log4net.Filter.FilterSkeleton
    log4net.Filter.StringMatchFilter
      log4net.Filter.PropertyFilter
        log4net.Filter.MdcFilter
        log4net.Filter.NdcFilter

Namespace: log4net.Filter
Assembly: log4net (in log4net.dll) Version: 2.0.6.0-.NET 4.0
Syntax

public class PropertyFilter : StringMatchFilter

The PropertyFilter type exposes the following members.

Constructors

  NameDescription
Public methodPropertyFilter
Default constructor
Top
Properties

  NameDescription
Public propertyAcceptOnMatch (Inherited from StringMatchFilter.)
Public propertyKey
The key to lookup in the event properties and then match against.
Public propertyNext
Property to get and set the next filter
(Inherited from FilterSkeleton.)
Public propertyRegexToMatch
Sets the regular expression to match
(Inherited from StringMatchFilter.)
Public propertyStringToMatch
Sets the static string to match
(Inherited from StringMatchFilter.)
Top
Methods

  NameDescription
Public methodActivateOptions
Initialize and precompile the Regex if required
(Inherited from StringMatchFilter.)
Public methodDecide
Check if this filter should allow the event to be logged
(Overrides StringMatchFilter.Decide(LoggingEvent).)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Top
Fields

  NameDescription
Protected fieldm_acceptOnMatch
Flag to indicate the behavior when we have a match
(Inherited from StringMatchFilter.)
Protected fieldm_regexToMatch
A regex object to match (generated from m_stringRegexToMatch)
(Inherited from StringMatchFilter.)
Protected fieldm_stringRegexToMatch
A string regex to match
(Inherited from StringMatchFilter.)
Protected fieldm_stringToMatch
The string to substring match against the message
(Inherited from StringMatchFilter.)
Top
Remarks

Simple filter to match a string in the value for a specific event property

See Also

Reference