| LogEventInfoSetStackTrace Method |
Sets the stack trace for the event info.
Namespace:
NLog
Assembly:
NLog (in NLog.dll) Version: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
Syntax public void SetStackTrace(
StackTrace stackTrace,
int userStackFrame
)
Public Sub SetStackTrace (
stackTrace As StackTrace,
userStackFrame As Integer
)
Dim instance As LogEventInfo
Dim stackTrace As StackTrace
Dim userStackFrame As Integer
instance.SetStackTrace(stackTrace, userStackFrame)
member SetStackTrace :
stackTrace : StackTrace *
userStackFrame : int -> unit
Parameters
- stackTrace
- Type: System.DiagnosticsStackTrace
The stack trace. - userStackFrame
- Type: SystemInt32
Index of the first user stack frame within the stack trace (Negative means NLog should skip stackframes from System-assemblies).
See Also