Click or drag to resize
LogEventInfoCreate Method (LogLevel, String, String, Exception)

Note: This API is now obsolete.

Creates the log event.

Namespace: NLog
Assembly: NLog (in NLog.dll) Version: 4.3.0
Syntax
[ObsoleteAttribute("use Create(LogLevel logLevel, string loggerName, Exception exception, IFormatProvider formatProvider, string message)")]
public static LogEventInfo Create(
	LogLevel logLevel,
	string loggerName,
	string message,
	Exception exception
)

Parameters

logLevel
Type: NLogLogLevel
The log level.
loggerName
Type: SystemString
Name of the logger.
message
Type: SystemString
The message.
exception
Type: SystemException
The exception.

Return Value

Type: LogEventInfo
Instance of LogEventInfo.
See Also