| LogEventInfoCreate Method (LogLevel, String, Exception, IFormatProvider, String, Object) |
Creates the log event.
Namespace:
NLog
Assembly:
NLog (in NLog.dll) Version: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
Syntax public static LogEventInfo Create(
LogLevel logLevel,
string loggerName,
Exception exception,
IFormatProvider formatProvider,
string message,
Object[] parameters
)
Public Shared Function Create (
logLevel As LogLevel,
loggerName As String,
exception As Exception,
formatProvider As IFormatProvider,
message As String,
parameters As Object()
) As LogEventInfo
Dim logLevel As LogLevel
Dim loggerName As String
Dim exception As Exception
Dim formatProvider As IFormatProvider
Dim message As String
Dim parameters As Object()
Dim returnValue As LogEventInfo
returnValue = LogEventInfo.Create(logLevel,
loggerName, exception, formatProvider,
message, parameters)
static member Create :
logLevel : LogLevel *
loggerName : string *
exception : Exception *
formatProvider : IFormatProvider *
message : string *
parameters : Object[] -> LogEventInfo
Parameters
- logLevel
- Type: NLogLogLevel
The log level. - loggerName
- Type: SystemString
Override default Logger name. Default Name is used when null - exception
- Type: SystemException
The exception. - formatProvider
- Type: SystemIFormatProvider
The format provider. - message
- Type: SystemString
The message. - parameters
- Type: SystemObject
The parameters.
Return Value
Type:
LogEventInfoInstance of
LogEventInfo.
See Also