LevelEvaluator Class | Apache log4net™ SDK Documentation

An evaluator that triggers at a threshold level
Inheritance Hierarchy

System
Object
log4net.Core
LevelEvaluator

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

C#
VB
C++
F#
Copy

    public class LevelEvaluator : ITriggeringEventEvaluator

    Public Class LevelEvaluator
    	Implements ITriggeringEventEvaluator

    public ref class LevelEvaluator : ITriggeringEventEvaluator

    type LevelEvaluator =
        class
            interface ITriggeringEventEvaluator
        end

The LevelEvaluator type exposes the following members.

Constructors

| Name | Description
--- | --- | ---
| LevelEvaluator | Create a new evaluator using the Off threshold.
| LevelEvaluator(Level) | Create a new evaluator using the specified Level threshold.

Top
Properties

| Name | Description
--- | --- | ---
| Threshold | the threshold to trigger at

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 level of the event passed to [M:IsTriggeringEvent(LoggingEvent)] is equal to or greater than the Threshold level.

See Also

#### Reference

log4net.Core Namespace