log4net SDK Reference |

# ILog.Warn Method (Object, Exception)

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

[Visual Basic]
Sub Warn( _
ByVal message As Object, _
ByVal exception As Exception _
)
[C#]
void Warn(
object message,
Exception exception
);

#### Parameters

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

#### Remarks

See the Warn form for more detailed information.

#### See Also

ILog Interface | log4net Namespace | ILog.Warn Overload List | Warn | IsWarnEnabled