Click or drag to resize

LogEventInfo Constructor (LogLevel, String, IFormatProvider, String, Object)

Initializes a new instance of the LogEventInfo class.

Namespace:  NLog
Assembly:  NLog (in NLog.dll) Version: 6.0.0+cfb73701cda54e2410b006f649f072e90daef707
Syntax
public LogEventInfo(
	LogLevel level,
	string? loggerName,
	IFormatProvider? formatProvider,
	string message,
	Object?[]? parameters
)

Parameters

level
Type: NLogLogLevel
Log level.
loggerName
Type: SystemString
Override default Logger name. Default Name is used when null
formatProvider
Type: SystemIFormatProvider
An IFormatProvider that supplies culture-specific formatting information.
message
Type: SystemString
Log message including parameter placeholders.
parameters
Type: SystemObject
Parameter array.
See Also