 | ILoggerExtensionsWarn Method (ILogger, Exception) |
Writes a Warn message for an exception.
Namespace: Bobs.LumberjackAssembly: Bobs.Lumberjack (in Bobs.Lumberjack.dll) Version: 0.1.0-dev001
Syntaxpublic static void Warn(
this ILogger logger,
Exception exception
)
<ExtensionAttribute>
Public Shared Sub Warn (
logger As ILogger,
exception As Exception
)
public:
[ExtensionAttribute]
static void Warn(
ILogger^ logger,
Exception^ exception
)
[<ExtensionAttribute>]
static member Warn :
logger : ILogger *
exception : Exception -> unit
Parameters
- logger
- Type: Bobs.LumberjackILogger
The logger to log with. - exception
- Type: SystemException
The exception.
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