Click or drag to resize

LogEventInfoCreate Method (LogLevel, String, IFormatProvider, String, Object)

Creates the log event.

Namespace:  NLog
Assembly:  NLog (in NLog.dll) Version: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
Syntax
public static LogEventInfo Create(
	LogLevel logLevel,
	string loggerName,
	IFormatProvider formatProvider,
	string message,
	Object[] parameters
)

Parameters

logLevel
Type: NLogLogLevel
The log level.
loggerName
Type: SystemString
Override default Logger name. Default Name is used when null
formatProvider
Type: SystemIFormatProvider
The format provider.
message
Type: SystemString
The message.
parameters
Type: SystemObject
The parameters.

Return Value

Type: LogEventInfo
Instance of LogEventInfo.
See Also