LogManager.CreateRepository Method (Type)
Creates a repository with the specified repository type.
[Visual Basic]
Overloads Public Shared Function CreateRepository( _
ByVal
repositoryType As
Type _
) As
ILoggerRepository
Parameters
-
repositoryType
- A Type that implements ILoggerRepository and has a no arg constructor. An instance of this type will be created to act as the ILoggerRepository for the repository specified.
Return Value
The ILoggerRepository created for the repository.
Remarks
The ILoggerRepository created will be associated with the repository specified such that a call to GetRepository will return the same repository instance.
See Also
LogManager Class | log4net Namespace | LogManager.CreateRepository Overload List