MailBee.NET Objects 3.1

Logger.DisableOnException Property

Gets or sets whether the logging should be automatically disabled instead of throwing exception when logging error occurs.

public bool DisableOnException {get; set;}

Property Value

true if logging should be silently disabled when any logging error occurs; false if any logging error should cause an exception to be thrown. The default value is false.

Remarks

Since logging exists primarily for debug purposes, it's possible to tell MailBee to ignore errors which occur in logging itself. When DisableOnException is true, the developer can still determine if logging error occurred by examining Enabled property value. If it's now false, the logging error occurred and the logging was disabled.

See Also

Logger Class | MailBee Namespace