Click or drag to resize

LogEventInfoCreate Method (LogLevel, String, 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,
	string message
)

Parameters

logLevel
Type: NLogLogLevel
The log level.
loggerName
Type: SystemString
Override default Logger name. Default Name is used when null
message
Type: SystemString
The message.

Return Value

Type: LogEventInfo
Instance of LogEventInfo.
See Also