LoggerManagerRepositorySelector Property Apache log4net™ SDK Documentation
Gets or sets the repository selector used by the LogManager.

Namespace: log4net.Core
Assembly: log4net (in log4net.dll) Version: 4.0

public static IRepositorySelector RepositorySelector { get; set; }

Property Value

Type: IRepositorySelector
The repository selector used by the LogManager.

The repository selector (IRepositorySelector) is used by the LogManager to create and select repositories (ILoggerRepository).

The caller to LogManager supplies either a string name or an assembly (if not supplied the assembly is inferred using [M:Assembly.GetCallingAssembly()]).

This context is used by the selector to lookup a specific repository.

For the full .NET Framework, the default repository is DefaultRepositorySelector; for the .NET Compact Framework CompactRepositorySelector is the default repository.

See Also