Click or drag to resize

InternalLoggerLog Method (LogLevel, FuncString)

Logs the specified message without an Exception at the specified level. messageFunc will be only called when logging is enabled for level level.

Namespace:  NLog.Common
Assembly:  NLog (in NLog.dll) Version: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
Syntax
public static void Log(
	LogLevel level,
	Func<string> messageFunc
)

Parameters

level
Type: NLogLogLevel
Log level.
messageFunc
Type: SystemFuncString
Function that returns the log message.
See Also