 | LogEventInfoCreate Method (LogLevel, String, String, Exception) |
Note: This API is now obsolete.
Creates the log event.
Namespace: NLogAssembly: NLog (in NLog.dll) Version: 4.3.0
Syntax[ObsoleteAttribute("use Create(LogLevel logLevel, string loggerName, Exception exception, IFormatProvider formatProvider, string message)")]
public static LogEventInfo Create(
LogLevel logLevel,
string loggerName,
string message,
Exception exception
)
<ObsoleteAttribute("use Create(LogLevel logLevel, string loggerName, Exception exception, IFormatProvider formatProvider, string message)")>
Public Shared Function Create (
logLevel As LogLevel,
loggerName As String,
message As String,
exception As Exception
) As LogEventInfo
Parameters
- logLevel
- Type: NLogLogLevel
The log level. - loggerName
- Type: SystemString
Name of the logger. - message
- Type: SystemString
The message. - exception
- Type: SystemException
The exception.
Return Value
Type:
LogEventInfoInstance of
LogEventInfo.
See Also