| LogEventBuilderCallsite Method |
Writes the log event to the underlying logger.
Namespace:
NLog
Assembly:
NLog (in NLog.dll) Version: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
Syntax public LogEventBuilder Callsite(
string callerClassName = null,
string callerMemberName = null,
string callerFilePath = null,
int callerLineNumber = 0
)
Public Function Callsite (
Optional callerClassName As String = Nothing,
Optional callerMemberName As String = Nothing,
Optional callerFilePath As String = Nothing,
Optional callerLineNumber As Integer = 0
) As LogEventBuilder
Dim instance As LogEventBuilder
Dim callerClassName As String
Dim callerMemberName As String
Dim callerFilePath As String
Dim callerLineNumber As Integer
Dim returnValue As LogEventBuilder
returnValue = instance.Callsite(callerClassName,
callerMemberName, callerFilePath,
callerLineNumber)
member Callsite :
?callerClassName : string *
?callerMemberName : string *
?callerFilePath : string *
?callerLineNumber : int
(* Defaults:
let _callerClassName = defaultArg callerClassName null
let _callerMemberName = defaultArg callerMemberName null
let _callerFilePath = defaultArg callerFilePath null
let _callerLineNumber = defaultArg callerLineNumber 0
*)
-> LogEventBuilder
Parameters
- callerClassName (Optional)
- Type: SystemString
The class of the caller to the method. This is captured by the NLog engine when necessary - callerMemberName (Optional)
- Type: SystemString
The method or property name of the caller to the method. This is set at by the compiler. - callerFilePath (Optional)
- Type: SystemString
The full path of the source file that contains the caller. This is set at by the compiler. - callerLineNumber (Optional)
- Type: SystemInt32
The line number in the source file at which the method is called. This is set at by the compiler.
Return Value
Type:
LogEventBuilderSee Also