PostSharp 2023.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics.​Backends.​Log4Net Namespace / Log4Net­Collecting­Repository­Selector Class / Log4Net­Collecting­Repository­Selector Methods

Log4NetCollectingRepositorySelector Methods

The Log4NetCollectingRepositorySelector type exposes the following members.

Methods
  NameDescription
Public methodCreateRepository(Assembly, Type)
Public methodCreateRepository(String, Type)
Public methodExistsRepository
Public methodGetAllRepositories
Public methodGetRepository(Assembly)
Public methodGetRepository(String)
If repositoryName corresponds to the "relay repository", returns that. Otherwise, returns a repository of the type Log4NetCollectionRepository.
Public methodStatic memberRedirectLoggingToPostSharp
Sets the global RepositorySelector to a log4net-to-PostSharp redirector so that all repositories and loggers created after this call redirect all messages to PostSharp. Returns a "relay repository" which is the only repository that won't be redirected to PostSharp.
See Also