Click or drag to resize

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

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,
	Exception exception,
	IFormatProvider formatProvider,
	string message
)

Parameters

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

Return Value

Type: LogEventInfo
Instance of LogEventInfo.
See Also