NLog.LogEventBuilder
A fluent builder for logging events to NLog.
Logging event that will be written
The logger to write the log event to
Initializes a new instance of the LogEventBuilder class.
Initializes a new instance of the LogEventBuilder class.
public LogEventBuilder Callsite(string callerClassName = null, string callerMemberName = null, string callerFilePath = null, int callerLineNumber = 0)
Writes the log event to the underlying logger.
Sets the exception information of the logging event.
public void Log(LogLevel logLevel = null, string callerMemberName = null, string callerFilePath = null, int callerLineNumber = 0)
Writes the log event to the underlying logger.
Writes the log event to the underlying logger.
Sets the log message on the logging event.
Sets the log message and parameters for formatting for the logging event.
public LogEventBuilder Message<TArgument1, TArgument2>(string message, TArgument1 argument1, TArgument2 argument2)
Sets the log message and parameters for formatting on the logging event.
public LogEventBuilder Message<TArgument1, TArgument2, TArgument3>(string message, TArgument1 argument1, TArgument2 argument2, TArgument3 argument3)
Sets the log message and parameters for formatting on the logging event.
Sets the log message and parameters for formatting on the logging event.
Sets the log message and parameters for formatting on the logging event.
Sets multiple per-event context properties on the logging event.
Sets multiple per-event context properties on the logging event.
Sets a per-event context property on the logging event.
Sets the timestamp of the logging event.