 | ILoggerBaseLogException Method |
Note: This API is now obsolete.
Writes the diagnostic message and exception at the specified level.
Namespace: NLogAssembly: NLog (in NLog.dll) Version: 4.3.0
Syntax[ObsoleteAttribute("Use Log(LogLevel level, Exception exception, [Localizable(false)] string message, params object[] args)")]
void LogException(
LogLevel level,
string message,
Exception exception
)
<ObsoleteAttribute("Use Log(LogLevel level, Exception exception, [Localizable(false)] string message, params object[] args)")>
Sub LogException (
level As LogLevel,
message As String,
exception As Exception
)
Parameters
- level
- Type: NLogLogLevel
The log level. - message
- Type: SystemString
A string to be written. - exception
- Type: SystemException
An exception to be logged.
See Also