Click or drag to resize

LogEventBuilderCallsite Method

Writes the log event to the underlying logger.

Namespace:  NLog
Assembly:  NLog (in NLog.dll) Version: 6.0.0+cfb73701cda54e2410b006f649f072e90daef707
Syntax
public LogEventBuilder Callsite(
	string? callerClassName = null,
	string? callerMemberName = null,
	string? callerFilePath = null,
	int callerLineNumber = 0
)

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: LogEventBuilder
See Also