ExceptionEvaluator ClassApache log4net™ SDK Documentation
An evaluator that triggers on an Exception type
Inheritance Hierarchy

SystemObject
  log4net.CoreExceptionEvaluator

Namespace: log4net.Core
Assembly: log4net (in log4net.dll) Version: 2.0.8.0-.NET 4.0
Syntax

public class ExceptionEvaluator : ITriggeringEventEvaluator

The ExceptionEvaluator type exposes the following members.

Constructors

  NameDescription
Public methodExceptionEvaluator
Default ctor to allow dynamic creation through a configurator.
Public methodExceptionEvaluator(Type, Boolean)
Constructs an evaluator and initializes to trigger on exType
Top
Properties

  NameDescription
Public propertyExceptionType
The type that triggers this evaluator.
Public propertyTriggerOnSubclass
If true, this evaluator will trigger on subclasses of ExceptionType.
Top
Methods

  NameDescription
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.)
Public methodIsTriggeringEvent
Is this loggingEvent the triggering event?
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
Remarks

This evaluator will trigger if the type of the Exception passed to [M:IsTriggeringEvent(LoggingEvent)] is equal to a Type in ExceptionType. ///

See Also

Reference