 | ILoggerExtensionsError Method (ILogger, Exception, FuncString) |
Writes a Error message for an exception,
which is lazily evaluated.
Namespace: Bobs.LumberjackAssembly: Bobs.Lumberjack (in Bobs.Lumberjack.dll) Version: 0.1.0-dev001
Syntaxpublic static void Error(
this ILogger logger,
Exception exception,
Func<string> message
)
<ExtensionAttribute>
Public Shared Sub Error (
logger As ILogger,
exception As Exception,
message As Func(Of String)
)
public:
[ExtensionAttribute]
static void Error(
ILogger^ logger,
Exception^ exception,
Func<String^>^ message
)
[<ExtensionAttribute>]
static member Error :
logger : ILogger *
exception : Exception *
message : Func<string> -> unit
Parameters
- logger
- Type: Bobs.LumberjackILogger
The logger to log with. - exception
- Type: SystemException
The exception. - message
- Type: SystemFuncString
The message.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
ILogger. 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).
See Also