ILog Warn Method (Object, Exception) | Apache log4net™ SDK Documentation

Log a message object with the Warn level including the stack trace of the Exception passed as a parameter.

Namespace: log4net
Assembly: log4net (in log4net.dll) Version: 2.0.8.0-.NET 4.0
Syntax

C#
VB
C++
F#
Copy

    void Warn(
    	Object message,
    	Exception exception
    )

    Sub Warn (
    	message As Object,
    	exception As Exception
    )

    void Warn(
    	Object^ message,
    	Exception^ exception
    )

    abstract Warn :
            message : Object *
            exception : Exception -> unit

#### Parameters

message
  Type: System
  Object
  The message object to log.
exception
  Type: System
  Exception
  The exception to log, including its stack trace.

Remarks

See the [M:Warn(object)] form for more detailed information.

See Also

#### Reference

ILog Interface
Warn Overload
log4net Namespace
[M:Warn(object)]
ILog
IsWarnEnabled