 | LoggerTraceException Method |
Note: This API is now obsolete.
Writes the diagnostic message and exception at the Trace level.
Namespace: NLogAssembly: NLog (in NLog.dll) Version: 4.3.0
Syntax[ObsoleteAttribute("Use Trace(Exception exception, string message, params object[] args) method instead.")]
public void TraceException(
string message,
Exception exception
)
<ObsoleteAttribute("Use Trace(Exception exception, string message, params object[] args) method instead.")>
Public Sub TraceException (
message As String,
exception As Exception
)
Parameters
- message
- Type: SystemString
A string to be written. - exception
- Type: SystemException
An exception to be logged.
Implements
ILoggerTraceException(String, Exception)
See Also