 | LogManagerThrowExceptions Property |
Gets or sets whether NLog should rethrow its own exceptions into the application instead of keeping them suppressed.
Namespace:
NLog
Assembly:
NLog (in NLog.dll) Version: 6.0.0+cfb73701cda54e2410b006f649f072e90daef707
Syntaxpublic static bool ThrowExceptions { get; set; }Public Shared Property ThrowExceptions As Boolean
Get
Set
Dim value As Boolean
value = LogManager.ThrowExceptions
LogManager.ThrowExceptions = value
static member ThrowExceptions : bool with get, set
Property Value
Type:
Boolean
RemarksDefault:
and should only be set to
for unit-tests or for last resort troubleshooting, when
ThrowConfigExceptions does not work.
See Also