ExceptionEvaluator IsTriggeringEvent Method | Apache log4net™ SDK Documentation

Is this loggingEvent the triggering event?

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

C#
VB
C++
F#
Copy

    public bool IsTriggeringEvent(
    	LoggingEvent loggingEvent
    )

    Public Function IsTriggeringEvent (
    	loggingEvent As LoggingEvent
    ) As Boolean

    public:
    virtual bool IsTriggeringEvent(
    	LoggingEvent^ loggingEvent
    ) sealed

    abstract IsTriggeringEvent :
            loggingEvent : LoggingEvent -> bool
    override IsTriggeringEvent :
            loggingEvent : LoggingEvent -> bool

#### Parameters

loggingEvent
  Type: log4net.Core
  LoggingEvent
  The event to check

#### Return Value

Type: Boolean
This method returns true, if the logging event Exception Type is ExceptionType. Otherwise it returns false

#### Implements

ITriggeringEventEvaluator
IsTriggeringEvent(LoggingEvent)
Remarks

This evaluator will trigger if the Exception Type of the event passed to [M:IsTriggeringEvent(LoggingEvent)] is ExceptionType.

See Also

#### Reference

ExceptionEvaluator Class
log4net.Core Namespace