log4net SDK Reference |

# LogImpl.Warn Method (Object, Exception)

Logs a message object with the `WARN` level

[Visual Basic]
Overridable Overloads Public Sub Warn( _
ByVal message As Object, _
ByVal exception As Exception _
) _
Implements ILog.Warn
[C#]
public virtual void Warn(
object message,
Exception exception
);

#### Parameters

message
  The message object to log.
exception
  The exception to log, including its stack trace.

#### Implements

ILog.Warn

#### Remarks

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

See the Warn form for more detailed information.

#### See Also

LogImpl Class | log4net.Core Namespace | LogImpl.Warn Overload List | Warn