log4net SDK Reference

Logger.ForcedLog Method (Type, Level, Object, Exception)

Creates a new logging event and logs the event without further checks.

[Visual Basic]
Overridable Overloads Protected Sub ForcedLog( _
   ByVal callerStackBoundaryDeclaringType As Type, _
   ByVal level As Level, _
   ByVal message As Object, _
   ByVal exception As Exception _
)
[C#]
protected virtual void ForcedLog(
   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.

Remarks

Generates a logging event and delivers it to the attached appenders.

See Also

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