次の方法で共有


LoggerEnrichmentOptions.IncludeExceptionMessage Property

Definition

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

Property Value

This defaults to false.

Remarks

When both IncludeExceptionMessage and CaptureStackTraces are set to true exception messages are also included in stack traces.

Applies to