 | LogEventInfo Constructor (LogLevel, String, IFormatProvider, String, Object, Exception) |
Namespace:
NLog
Assembly:
NLog (in NLog.dll) Version: 6.0.0+cfb73701cda54e2410b006f649f072e90daef707
Syntaxpublic LogEventInfo(
LogLevel level,
string? loggerName,
IFormatProvider? formatProvider,
string message,
Object?[]? parameters,
Exception? exception
)
Public Sub New (
level As LogLevel,
loggerName As String,
formatProvider As IFormatProvider,
message As String,
parameters As Object(),
exception As Exception
)
Dim level As LogLevel
Dim loggerName As String
Dim formatProvider As IFormatProvider
Dim message As String
Dim parameters As Object()
Dim exception As Exception
Dim instance As New LogEventInfo(level, loggerName,
formatProvider, message, parameters,
exception)
new :
level : LogLevel *
loggerName : string *
formatProvider : IFormatProvider *
message : string *
parameters : Object[] *
exception : Exception -> LogEventInfo
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. - exception
- Type: SystemException
Exception information.
See Also