Click or drag to resize

LogEventInfo Constructor (LogLevel, String, String, String, IListMessageTemplateParameter)

Initializes a new instance of the LogEventInfo class.

Namespace:  NLog
Assembly:  NLog (in NLog.dll) Version: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
Syntax
public LogEventInfo(
	LogLevel level,
	string loggerName,
	string formattedMessage,
	string messageTemplate,
	IList<MessageTemplateParameter> messageTemplateParameters
)

Parameters

level
Type: NLogLogLevel
Log level.
loggerName
Type: SystemString
Override default Logger name. Default Name is used when null
formattedMessage
Type: SystemString
Pre-formatted log message for ${message}.
messageTemplate
Type: SystemString
Log message-template including parameter placeholders for ${message:raw=true}.
messageTemplateParameters
Type: System.Collections.GenericIListMessageTemplateParameter
Already parsed message template parameters.
See Also