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