LoggerManager Class | Apache log4net™ SDK Documentation

Static manager that controls the creation of repositories
Inheritance Hierarchy

System
Object
log4net.Core
LoggerManager

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

C#
VB
C++
F#
Copy

    public sealed class LoggerManager

    Public NotInheritable Class LoggerManager

    public ref class LoggerManager sealed

    [<SealedAttribute>]
    type LoggerManager =  class end

The LoggerManager type exposes the following members.

Properties

| Name | Description
--- | --- | ---
| RepositorySelector | Gets or sets the repository selector used by the LogManager.

Top
Methods

| Name | Description
--- | --- | ---
| CreateDomain(String) | Obsolete. Creates a repository with the specified name.
| CreateDomain(Assembly, Type) | Obsolete. Creates a repository for the specified assembly and repository type.
| CreateDomain(String, Type) | Obsolete. Creates a repository with the specified name and repository type.
| CreateRepository(String) | Creates a repository with the specified name.
| CreateRepository(Assembly, Type) | Creates a repository for the specified assembly and repository type.
| CreateRepository(String, Type) | Creates a repository with the specified name and repository type.
| Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
| Exists(Assembly, String) | Returns the named logger if it exists.
| Exists(String, String) | Returns the named logger if it exists.
| GetAllRepositories | Gets an array of all currently defined repositories.
| GetCurrentLoggers(Assembly) | Returns all the currently defined loggers in the specified assembly's repository.
| GetCurrentLoggers(String) | Returns all the currently defined loggers in the specified repository.
| GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.)
| GetLogger(Assembly, String) | Retrieves or creates a named logger.
| GetLogger(Assembly, Type) | Shorthand for GetLogger(string).
| GetLogger(String, String) | Retrieves or creates a named logger.
| GetLogger(String, Type) | Shorthand for GetLogger(string).
| GetLoggerRepository(Assembly) | Obsolete. Returns the default ILoggerRepository instance.
| GetLoggerRepository(String) | Obsolete. Return the default ILoggerRepository instance.
| GetRepository(Assembly) | Returns the default ILoggerRepository instance.
| GetRepository(String) | Return the default ILoggerRepository instance.
| GetType | Gets the Type of the current instance. (Inherited from Object.)
| ResetConfiguration(Assembly) | Resets all values contained in this repository instance to their defaults.
| ResetConfiguration(String) | Resets all values contained in this repository instance to their defaults.
| Shutdown | Shuts down the log4net system.
| ShutdownRepository(Assembly) | Shuts down the repository for the repository specified.
| ShutdownRepository(String) | Shuts down the repository for the repository specified.
| ToString | Returns a String that represents the current Object. (Inherited from Object.)

Top
Remarks

Static manager that controls the creation of repositories

This class is used by the wrapper managers (e.g. LogManager) to provide access to the ILogger objects.

This manager also holds the IRepositorySelector that is used to lookup and create repositories. The selector can be set either programmatically using the RepositorySelector property, or by setting the log4net.RepositorySelector AppSetting in the applications config file to the fully qualified type name of the selector to use.

See Also

#### Reference

log4net.Core Namespace