log4net SDK Reference

IRepositorySelector.CreateRepository Method (String, Type)

Creates a new repository with the name specified.

[Visual Basic]
Function CreateRepository( _
   ByVal repositoryName As String, _
   ByVal repositoryType As Type _
) As ILoggerRepository
[C#]
ILoggerRepository CreateRepository(
   string repositoryName,
   Type repositoryType
);

Parameters

repositoryName
The name to associate with the ILoggerRepository.
repositoryType
The type of repository to create, must implement ILoggerRepository.

Return Value

The repository created.

Remarks

The ILoggerRepository created will be associated with the name specified such that a call to GetRepository with the same name will return the same repository instance.

See Also

IRepositorySelector Interface | log4net.Core Namespace | IRepositorySelector.CreateRepository Overload List