PatternLayoutConverter IgnoresException Property | Apache log4net™ SDK Documentation

Flag indicating if this converter handles the logging event exception

Namespace: log4net.Layout.Pattern
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 converter handles the logging event exception
Remarks

If this converter handles the exception object contained within LoggingEvent, then this property should be set to false. Otherwise, if the layout ignores the exception object, then the property should be set to true.

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

See Also

#### Reference

PatternLayoutConverter Class
log4net.Layout.Pattern Namespace