log4net SDK Reference

ILogger.Log Method (Type, Level, Object, Exception)

This generic form is intended to be used by wrappers.

[Visual Basic]
Sub Log( _
   ByVal callerStackBoundaryDeclaringType As Type, _
   ByVal level As Level, _
   ByVal message As Object, _
   ByVal exception As Exception _
)
[C#]
void Log(
   Type callerStackBoundaryDeclaringType,
   Level level,
   object message,
   Exception exception
);

Parameters

callerStackBoundaryDeclaringType
The declaring type of the method that is the stack boundary into the logging system for this call.
level
The level of the message to be logged.
message
The message object to log.
exception
the exception to log, including its stack trace. Pass null to not log an exception.

Remarks

Generates a logging event for the specified level using the message and exception.

See Also

ILogger Interface | log4net.Core Namespace | ILogger.Log Overload List