log4net SDK Reference

Logger.Log Method (Level, Object, Exception)

This is the most generic printing method. This generic form is intended to be used by wrappers

[Visual Basic]
Overridable Overloads Public Sub Log( _
   ByVal level As Level, _
   ByVal message As Object, _
   ByVal exception As Exception _
)
[C#]
public virtual void Log(
   Level level,
   object message,
   Exception exception
);

Parameters

level
The level of the message to be logged.
message
The message object to log.
exception
The exception to log, including its stack trace.

Remarks

Generate a logging event for the specified level using the message.

See Also

Logger Class | log4net.Repository.Hierarchy Namespace | Logger.Log Overload List