ILogger InterfaceApache 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

public interface ILogger

The ILogger type exposes the following members.

Properties

  NameDescription
Public propertyName
Gets the name of the logger.
Public propertyRepository
Gets the ILoggerRepository where this Logger instance is attached to.
Top
Methods

  NameDescription
Public methodIsEnabledFor
Checks if this logger is enabled for a given Level passed as parameter.
Public methodLog(LoggingEvent)
This is the most generic printing method that is intended to be used by wrappers.
Public methodLog(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