<PackageReference Include="NLog" Version="6.1.1" />

NLog.Config.StackTraceUsage

public enum StackTraceUsage
Value indicating how stack trace should be captured when processing the log event.
Max = 3

Capture maximum amount of the stack trace information supported on the platform.

None = 0

No Stack trace needs to be captured.

Capture the location of the call

Capture the class name for location of the call

Capture also filenames and linenumbers

Stack trace should be captured. This option won't add the filenames and linenumbers.

Stack trace should be captured including filenames and linenumbers.

Stack trace should be captured. This option won't add the filenames and linenumbers