 | LogExtensionsLogError Method (INeonLogger, FuncObject) |
Logs an error message retrieved via a message function.
Namespace:
Neon.Diagnostics
Assembly:
Neon.Common (in Neon.Common.dll) Version: 2.14.0
Syntaxpublic static void LogError(
this INeonLogger log,
Func<Object> messageFunc
)
<ExtensionAttribute>
Public Shared Sub LogError (
log As INeonLogger,
messageFunc As Func(Of Object)
)
public:
[ExtensionAttribute]
static void LogError(
INeonLogger^ log,
Func<Object^>^ messageFunc
)
[<ExtensionAttribute>]
static member LogError :
log : INeonLogger *
messageFunc : Func<Object> -> unit
Parameters
- log
- Type: Neon.DiagnosticsINeonLogger
The log. - messageFunc
- Type: SystemFuncObject
The message function.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
INeonLogger. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
Remarks
This method is intended mostly to enable the efficient use of interpolated C# strings.
See Also