AppenderSkeleton IsAsSevereAsThreshold Method | Apache log4net™ SDK Documentation

Checks if the message level is below this appender's threshold.

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

C#
VB
C++
F#
Copy

    protected virtual bool IsAsSevereAsThreshold(
    	Level level
    )

    Protected Overridable Function IsAsSevereAsThreshold (
    	level As Level
    ) As Boolean

    protected:
    virtual bool IsAsSevereAsThreshold(
    	Level^ level
    )

    abstract IsAsSevereAsThreshold :
            level : Level -> bool
    override IsAsSevereAsThreshold :
            level : Level -> bool

#### Parameters

level
  Type: log4net.Core
  Level
  Level to test against.

#### Return Value

Type: Boolean
true if the level meets the Threshold requirements of this appender.
Remarks

If there is no threshold set, then the return value is always true.

See Also

#### Reference

AppenderSkeleton Class
log4net.Appender Namespace