Log a message object with the Warn level including
the stack trace of the Exception passed
as a parameter.
Namespace: log4net.UtilAssembly: log4net (in log4net.dll) Version: 1.2.15.0 (1.2.15.0)
Syntax
Parameters
- logger
- Type: log4net ILog
The logger on which the message is logged.
- message
- Type: System Object
The message object to log.
- exception
- Type: System Exception
The exception to log, including its stack trace.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type ILog. 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
See the WarnExt(ILog, Object) form for more detailed information.
See Also