ILogger Log Method (Type, Level, Object, Exception) | Apache log4net™ SDK Documentation

This generic form is intended to be used by wrappers.

Namespace: log4net.Core
Assembly: log4net (in log4net.dll) Version: 2.0.8.0-.NET 4.0
Syntax

C#
VB
C++
F#
Copy

    void Log(
    	Type callerStackBoundaryDeclaringType,
    	Level level,
    	Object message,
    	Exception exception
    )

    Sub Log (
    	callerStackBoundaryDeclaringType As Type,
    	level As Level,
    	message As Object,
    	exception As Exception
    )

    void Log(
    	Type^ callerStackBoundaryDeclaringType,
    	Level^ level,
    	Object^ message,
    	Exception^ exception
    )

    abstract Log :
            callerStackBoundaryDeclaringType : Type *
            level : Level *
            message : Object *
            exception : Exception -> unit

#### Parameters

callerStackBoundaryDeclaringType
  Type: System
  Type
  The declaring type of the method that is the stack boundary into the logging system for this call.
level
  Type: log4net.Core
  Level
  The level of the message to be logged.
message
  Type: System
  Object
  The message object to log.
exception
  Type: System
  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

#### Reference

ILogger Interface
Log Overload
log4net.Core Namespace