Click or drag to resize
LoggerLogException Method

Note: This API is now obsolete.

Writes the diagnostic message and exception at the specified level.

Namespace: NLog
Assembly: NLog (in NLog.dll) Version: 4.3.0
Syntax
[ObsoleteAttribute("Use Log(LogLevel, String, Exception) method instead.")]
public void LogException(
	LogLevel level,
	string message,
	Exception exception
)

Parameters

level
Type: NLogLogLevel
The log level.
message
Type: SystemString
A string to be written.
exception
Type: SystemException
An exception to be logged.

Implements

ILoggerBaseLogException(LogLevel, String, Exception)
See Also