You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
format - Output format of the stack trace. Default: Flat
Possible values:
DetailedFlat - Detailed flat format (method signatures displayed in a single line).
Flat - Flat format (class and method names displayed in a single line).
Raw - Raw format (multiline - as returned by StackFrame.ToString() method).
topFrames - Number of top stack frames to be rendered. Integer Default: 3
skipFrames - Numberof frames to skip. Integer Default: 0
separator - Stack frame separator string. Default: =>. To set new line use
captureStackTrace - Logger should capture StackTrace, if it was not provided manually. Default: true
Introduced with NLog 4.7.1
reverse - Whether to output the stacktrace in reverse order. Default: false
Introduced with NLog 5.0
Examples
Raw
Note: To get the filenames and line numbers, include the PDB files.
Note: Prior NLog 4.4.7, the result was always <filename unknown>:0:0
Main at offset 638 in file:line:column file1.cs:100:10
TestLogging at offset 590 in file:line:column testlogger.cs:30:10
WriteToLog at offset 112 in file:line:column testlogger.cs:10:20