ILogger Interface | Apache log4net™ SDK Documentation

Interface that all loggers implement

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

C#
VB
C++
F#
Copy

    public interface ILogger

    Public Interface ILogger

    public interface class ILogger

    type ILogger =  interface end

The ILogger type exposes the following members.

Properties

| Name | Description
--- | --- | ---
| Name | Gets the name of the logger.
| Repository | Gets the ILoggerRepository where this Logger instance is attached to.

Top
Methods

| Name | Description
--- | --- | ---
| IsEnabledFor | Checks if this logger is enabled for a given Level passed as parameter.
| Log(LoggingEvent) | This is the most generic printing method that is intended to be used by wrappers.
| Log(Type, Level, Object, Exception) | This generic form is intended to be used by wrappers.

Top
Remarks

This interface supports logging events and testing if a level is enabled for logging.

These methods will not throw exceptions. Note to implementor, ensure that the implementation of these methods cannot allow an exception to be thrown to the caller.

See Also

#### Reference

log4net.Core Namespace