NLog Logging Library

Logger.LogException Method 

[This is preliminary documentation and subject to change.]

Writes the diagnostic message and exception at the specified level.

[Visual Basic]
Public Sub LogException( _
   ByVal level As LogLevel, _
   ByVal message As String, _
   ByVal exception As Exception _
)
[C#]
public void LogException(
   LogLevel level,
   string message,
   Exception exception
);

Parameters

level
the log level.
message
A string to be written.
exception
An exception to be logged.

See Also

Logger Class | NLog Namespace