| StackTraceUsage Enumeration |
Value indicating how stack trace should be captured when processing the log event.
Namespace:
NLog.Config
Assembly:
NLog (in NLog.dll) Version: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
Syntax [FlagsAttribute]
public enum StackTraceUsage
<FlagsAttribute>
Public Enumeration StackTraceUsage
Dim instance As StackTraceUsage
[<FlagsAttribute>]
type StackTraceUsage
Members
| Member name | Value | Description |
---|
| None | 0 |
No Stack trace needs to be captured.
|
| WithStackTrace | 1 |
Stack trace should be captured. This option won't add the filenames and linenumbers
|
| WithFileNameAndLineNumber | 2 |
Capture also filenames and linenumbers
|
| WithCallSite | 4 |
Capture the location of the call
|
| WithCallSiteClassName | 8 |
Capture the class name for location of the call
|
| WithoutSource | 1 | Obsolete.
Stack trace should be captured. This option won't add the filenames and linenumbers.
|
| WithSource | 3 |
Stack trace should be captured including filenames and linenumbers.
|
| Max | 3 |
Capture maximum amount of the stack trace information supported on the platform.
|
See Also