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

Logs a message object with the WARN level

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

C#
VB
C++
F#
Copy

    public virtual void Warn(
    	Object message,
    	Exception exception
    )

    Public Overridable Sub Warn (
    	message As Object,
    	exception As Exception
    )

    public:
    virtual void Warn(
    	Object^ message,
    	Exception^ exception
    )

    abstract Warn :
            message : Object *
            exception : Exception -> unit
    override 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.

#### Implements

ILog
Warn(Object, Exception)
Remarks

Logs a message object with the WARN level including the stack trace of the Exception exception passed as a parameter.

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

See Also

#### Reference

LogImpl Class
Warn Overload
log4net.Core Namespace
[M:Warn(object)]