| InternalLoggerError Method (Exception, FuncString) |
Logs the specified message with an
Exception at the Error level.
messageFunc will be only called when logging is enabled for level Error.
Namespace:
NLog.Common
Assembly:
NLog (in NLog.dll) Version: 5.2.0+eed5f76d158dbcaef9326f7a0e1c281adad171e8
Syntax public static void Error(
Exception ex,
Func<string> messageFunc
)
Public Shared Sub Error (
ex As Exception,
messageFunc As Func(Of String)
)
Dim ex As Exception
Dim messageFunc As Func(Of String)
InternalLogger.Error(ex, messageFunc)
static member Error :
ex : Exception *
messageFunc : Func<string> -> unit
Parameters
- ex
- Type: SystemException
Exception to be logged. - messageFunc
- Type: SystemFuncString
Function that returns the log message.
See Also