| LogEventInfo Constructor (LogLevel, String, IFormatProvider, String, Object, Exception) |
Namespace:
NLog
Assembly:
NLog (in NLog.dll) Version: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
Syntax public 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