ILoggerRepository Log Method | Apache log4net™ SDK Documentation

Log the LoggingEvent through this repository.

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

C#
VB
C++
F#
Copy

    void Log(
    	LoggingEvent logEvent
    )

    Sub Log (
    	logEvent As LoggingEvent
    )

    void Log(
    	LoggingEvent^ logEvent
    )

    abstract Log :
            logEvent : LoggingEvent -> unit

#### Parameters

logEvent
  Type: log4net.Core
  LoggingEvent
  the event to log

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

ILoggerRepository Interface
log4net.Repository Namespace