Hierarchy Log Method | Apache log4net™ SDK Documentation

Log the logEvent through this hierarchy.

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

C#
VB
C++
F#
Copy

    public override void Log(
    	LoggingEvent logEvent
    )

    Public Overrides Sub Log (
    	logEvent As LoggingEvent
    )

    public:
    virtual void Log(
    	LoggingEvent^ logEvent
    ) override

    abstract Log :
            logEvent : LoggingEvent -> unit
    override Log :
            logEvent : LoggingEvent -> unit

#### Parameters

logEvent
  Type: log4net.Core
  LoggingEvent
  the event to log

#### Implements

ILoggerRepository
Log(LoggingEvent)
Remarks

This method should not normally be used to log. The ILog interface should be used for routine logging. This interface can be obtained using the GetLogger(string) method.

The logEvent is delivered to the appropriate logger and that logger is then responsible for logging the event.

See Also

#### Reference

Hierarchy Class
log4net.Repository.Hierarchy Namespace