LoggerDisableOnException Property |
Gets or sets whether the logging should be automatically disabled instead of throwing exception when logging error occurs.
Namespace: MailBeeAssembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax public bool DisableOnException { get; set; }
Public Property DisableOnException As Boolean
Get
Set
Property Value
Type:
Booleantrue 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