 | LogEventInfo Constructor (LogLevel, String, String, String, IListMessageTemplateParameter) |
Namespace:
NLog
Assembly:
NLog (in NLog.dll) Version: 6.0.0+cfb73701cda54e2410b006f649f072e90daef707
Syntaxpublic LogEventInfo(
LogLevel level,
string? loggerName,
string formattedMessage,
string messageTemplate,
IList<MessageTemplateParameter>? messageTemplateParameters
)
Public Sub New (
level As LogLevel,
loggerName As String,
formattedMessage As String,
messageTemplate As String,
messageTemplateParameters As IList(Of MessageTemplateParameter)
)
Dim level As LogLevel
Dim loggerName As String
Dim formattedMessage As String
Dim messageTemplate As String
Dim messageTemplateParameters As IList(Of MessageTemplateParameter)
Dim instance As New LogEventInfo(level, loggerName,
formattedMessage, messageTemplate,
messageTemplateParameters)
new :
level : LogLevel *
loggerName : string *
formattedMessage : string *
messageTemplate : string *
messageTemplateParameters : IList<MessageTemplateParameter> -> LogEventInfo
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