 | LogEventInfoSetCallerInfo Method |
Sets the details retrieved from the Caller Information Attributes
Namespace:
NLog
Assembly:
NLog (in NLog.dll) Version: 6.0.0+cfb73701cda54e2410b006f649f072e90daef707
Syntaxpublic void SetCallerInfo(
string? callerClassName,
string? callerMemberName,
string? callerFilePath,
int callerLineNumber
)
Public Sub SetCallerInfo (
callerClassName As String,
callerMemberName As String,
callerFilePath As String,
callerLineNumber As Integer
)
Dim instance As LogEventInfo
Dim callerClassName As String
Dim callerMemberName As String
Dim callerFilePath As String
Dim callerLineNumber As Integer
instance.SetCallerInfo(callerClassName,
callerMemberName, callerFilePath,
callerLineNumber)
member SetCallerInfo :
callerClassName : string *
callerMemberName : string *
callerFilePath : string *
callerLineNumber : int -> unit
Parameters
- callerClassName
- Type: SystemString
- callerMemberName
- Type: SystemString
- callerFilePath
- Type: SystemString
- callerLineNumber
- Type: SystemInt32
See Also