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

Namespace: MailBee
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.3.1 build 666 for .NET 4.5
public bool DisableOnException { get; set; }

Property Value

Type: Boolean
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.
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