CompactRepositorySelector GetRepository Method (Assembly) | Apache log4net™ SDK Documentation

Get the ILoggerRepository for the specified assembly

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

C#
VB
C++
F#
Copy

    public ILoggerRepository GetRepository(
    	Assembly assembly
    )

    Public Function GetRepository (
    	assembly As Assembly
    ) As ILoggerRepository

    public:
    virtual ILoggerRepository^ GetRepository(
    	Assembly^ assembly
    ) sealed

    abstract GetRepository :
            assembly : Assembly -> ILoggerRepository
    override GetRepository :
            assembly : Assembly -> ILoggerRepository

#### Parameters

assembly
  Type: System.Reflection
  Assembly
  not used

#### Return Value

Type: ILoggerRepository
The default ILoggerRepository

#### Implements

IRepositorySelector
GetRepository(Assembly)
Remarks

The assembly argument is not used. This selector does not create a separate repository for each assembly.

As a named repository is not specified the default repository is returned. The default repository is named log4net-default-repository.

See Also

#### Reference

CompactRepositorySelector Class
GetRepository Overload
log4net.Core Namespace