IRepositorySelector Interface
IRepositorySelector InterfaceApache log4net™ SDK Documentation
Interface used by the LogManager to select the ILoggerRepository.

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

public interface IRepositorySelector

The IRepositorySelector type exposes the following members.

Methods

  NameDescription
Public methodCreateRepository(Assembly, Type)
Creates a new repository for the assembly specified.
Public methodCreateRepository(String, Type)
Creates a new repository with the name specified.
Public methodExistsRepository
Test if a named repository exists
Public methodGetAllRepositories
Gets an array of all currently defined repositories.
Public methodGetRepository(Assembly)
Gets the ILoggerRepository for the specified assembly.
Public methodGetRepository(String)
Gets the named ILoggerRepository.
Top
Events

  NameDescription
Public eventLoggerRepositoryCreatedEvent
Event to notify that a logger repository has been created.
Top
Remarks

The LogManager uses a IRepositorySelector to specify the policy for selecting the correct ILoggerRepository to return to the caller.

See Also

Reference