RepositorySelector Property

log4net SDK Reference |

# LoggerManager.RepositorySelector Property

Gets or sets the repository selector used by the LogManager.

[Visual Basic]
Public Shared Property RepositorySelector As IRepositorySelector
[C#]
public static IRepositorySelector RepositorySelector {get; set;}

#### Property Value

The repository selector used by the LogManager.

#### Remarks

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

LoggerManager Class | log4net.Core Namespace