| LogEventInfoCreate Method (LogLevel, String, IFormatProvider, 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,
IFormatProvider formatProvider,
Object message
)
Public Shared Function Create (
logLevel As LogLevel,
loggerName As String,
formatProvider As IFormatProvider,
message As Object
) As LogEventInfo
Dim logLevel As LogLevel
Dim loggerName As String
Dim formatProvider As IFormatProvider
Dim message As Object
Dim returnValue As LogEventInfo
returnValue = LogEventInfo.Create(logLevel,
loggerName, formatProvider, message)
static member Create :
logLevel : LogLevel *
loggerName : string *
formatProvider : IFormatProvider *
message : Object -> LogEventInfo
Parameters
- logLevel
- Type: NLogLogLevel
The log level. - loggerName
- Type: SystemString
Override default Logger name. Default Name is used when null - formatProvider
- Type: SystemIFormatProvider
The format provider. - message
- Type: SystemObject
The message.
Return Value
Type:
LogEventInfoInstance of
LogEventInfo.
See Also