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