LoggerEnrichmentOptions.IncludeExceptionMessage Property
In this article
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets a value indicating whether to include the exception message when an exception is logged.
public:
property bool IncludeExceptionMessage { bool get(); void set(bool value); };
public bool IncludeExceptionMessage { get; set; }
member this.IncludeExceptionMessage : bool with get, set
Public Property IncludeExceptionMessage As Boolean
This defaults to false
.
When both IncludeExceptionMessage and CaptureStackTraces are set to true
exception messages are also included in stack traces.
Applies to
Product | Versions |
---|---|
.NET | 8 (package-provided), 9 (package-provided), 10 (package-provided) |
.NET feedback
.NET is an open source project. Select a link to provide feedback: