Click or drag to resize
LoggerWarnException Method

Note: This API is now obsolete.

Writes the diagnostic message and exception at the Warn level.

Namespace: NLog
Assembly: NLog (in NLog.dll) Version: 4.3.0
Syntax
[ObsoleteAttribute("Use Warn(Exception exception, string message, params object[] args) method instead.")]
public void WarnException(
	string message,
	Exception exception
)

Parameters

message
Type: SystemString
A string to be written.
exception
Type: SystemException
An exception to be logged.

Implements

ILoggerWarnException(String, Exception)
See Also