Click or drag to resize
LogEventInfoCreate Method (LogLevel, String, IFormatProvider, Object)
Creates the log event.

Namespace: NLog
Assembly: NLog (in NLog.dll) Version: 4.3.0
Syntax
public static LogEventInfo Create(
	LogLevel logLevel,
	string loggerName,
	IFormatProvider formatProvider,
	Object message
)

Parameters

logLevel
Type: NLogLogLevel
The log level.
loggerName
Type: SystemString
Name of the logger.
formatProvider
Type: SystemIFormatProvider
The format provider.
message
Type: SystemObject
The message.

Return Value

Type: LogEventInfo
Instance of LogEventInfo.
See Also