Click or drag to resize

LogEventInfoSetStackTrace Method

Sets the stack trace for the event info.

Namespace:  NLog
Assembly:  NLog (in NLog.dll) Version: 5.3.1+cf6675da40ccfd4c8c526a3b2bdbeed3442910a1
Syntax
public void SetStackTrace(
	StackTrace stackTrace,
	int userStackFrame
)

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