ExceptionEvaluator Class | Apache log4net™ SDK Documentation

An evaluator that triggers on an Exception type
Inheritance Hierarchy

System
Object
log4net.Core
ExceptionEvaluator

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

C#
VB
C++
F#
Copy

    public class ExceptionEvaluator : ITriggeringEventEvaluator

    Public Class ExceptionEvaluator
    	Implements ITriggeringEventEvaluator

    public ref class ExceptionEvaluator : ITriggeringEventEvaluator

    type ExceptionEvaluator =
        class
            interface ITriggeringEventEvaluator
        end

The ExceptionEvaluator type exposes the following members.

Constructors

| Name | Description
--- | --- | ---
| ExceptionEvaluator | Default ctor to allow dynamic creation through a configurator.
| ExceptionEvaluator(Type, Boolean) | Constructs an evaluator and initializes to trigger on exType

Top
Properties

| Name | Description
--- | --- | ---
| ExceptionType | The type that triggers this evaluator.
| TriggerOnSubclass | If true, this evaluator will trigger on subclasses of ExceptionType.

Top
Methods

| Name | Description
--- | --- | ---
| Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
| Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
| GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.)
| GetType | Gets the Type of the current instance. (Inherited from Object.)
| IsTriggeringEvent | Is this loggingEvent the triggering event?
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.)
| ToString | 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

log4net.Core Namespace