 | LogEventInfoSetStackTrace Method (StackTrace, Int32) |
Note: This API is now obsolete.
Sets the stack trace for the event info.
Namespace:
NLog
Assembly:
NLog (in NLog.dll) Version: 5.5.0+1873145cbc26e0312d9481234d69ce7dc68aac4e
Syntax[ObsoleteAttribute("Instead use SetStackTrace or SetCallerInfo. Marked obsolete with NLog 5.4")]
public void SetStackTrace(
StackTrace stackTrace,
int userStackFrame
)
<ObsoleteAttribute("Instead use SetStackTrace or SetCallerInfo. Marked obsolete with NLog 5.4")>
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)
[<ObsoleteAttribute("Instead use SetStackTrace or SetCallerInfo. Marked obsolete with NLog 5.4")>]
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