LayoutSkeleton IgnoresException Property | Apache log4net™ SDK Documentation

Flag indicating if this layout handles exceptions

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

C#
VB
C++
F#
Copy

    public virtual bool IgnoresException { get; set; }

    Public Overridable Property IgnoresException As Boolean
    	Get
    	Set

    public:
    virtual property bool IgnoresException {
    	bool get ();
    	void set (bool value);
    }

    abstract IgnoresException : bool with get, set
    override IgnoresException : bool with get, set

#### Property Value

Type: Boolean
false if this layout handles exceptions

#### Implements

ILayout
IgnoresException
Remarks

If this layout handles the exception object contained within LoggingEvent, then the layout should return false. Otherwise, if the layout ignores the exception object, then the layout should return true.

Set this value to override a this default setting. The default value is true, this layout does not handle the exception.

See Also

#### Reference

LayoutSkeleton Class
log4net.Layout Namespace