LoggerManager Class
LoggerManager ClassApache log4net™ SDK Documentation
Static manager that controls the creation of repositories
Inheritance Hierarchy

SystemObject
  log4net.CoreLoggerManager

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

public sealed class LoggerManager

The LoggerManager type exposes the following members.

Properties

  NameDescription
Public propertyStatic memberRepositorySelector
Gets or sets the repository selector used by the LogManager.
Top
Methods

  NameDescription
Public methodStatic memberCreateDomain(String) Obsolete.
Creates a repository with the specified name.
Public methodStatic memberCreateDomain(Assembly, Type) Obsolete.
Creates a repository for the specified assembly and repository type.
Public methodStatic memberCreateDomain(String, Type) Obsolete.
Creates a repository with the specified name and repository type.
Public methodStatic memberCreateRepository(String)
Creates a repository with the specified name.
Public methodStatic memberCreateRepository(Assembly, Type)
Creates a repository for the specified assembly and repository type.
Public methodStatic memberCreateRepository(String, Type)
Creates a repository with the specified name and repository type.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodStatic memberExists(Assembly, String)
Returns the named logger if it exists.
Public methodStatic memberExists(String, String)
Returns the named logger if it exists.
Public methodStatic memberGetAllRepositories
Gets an array of all currently defined repositories.
Public methodStatic memberGetCurrentLoggers(Assembly)
Returns all the currently defined loggers in the specified assembly's repository.
Public methodStatic memberGetCurrentLoggers(String)
Returns all the currently defined loggers in the specified repository.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodStatic memberGetLogger(Assembly, String)
Retrieves or creates a named logger.
Public methodStatic memberGetLogger(Assembly, Type)
Shorthand for GetLogger(string).
Public methodStatic memberGetLogger(String, String)
Retrieves or creates a named logger.
Public methodStatic memberGetLogger(String, Type)
Shorthand for GetLogger(string).
Public methodStatic memberGetLoggerRepository(Assembly) Obsolete.
Returns the default ILoggerRepository instance.
Public methodStatic memberGetLoggerRepository(String) Obsolete.
Return the default ILoggerRepository instance.
Public methodStatic memberGetRepository(Assembly)
Returns the default ILoggerRepository instance.
Public methodStatic memberGetRepository(String)
Return the default ILoggerRepository instance.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberResetConfiguration(Assembly)
Resets all values contained in this repository instance to their defaults.
Public methodStatic memberResetConfiguration(String)
Resets all values contained in this repository instance to their defaults.
Public methodStatic memberShutdown
Shuts down the log4net system.
Public methodStatic memberShutdownRepository(Assembly)
Shuts down the repository for the repository specified.
Public methodStatic memberShutdownRepository(String)
Shuts down the repository for the repository specified.
Public methodToString
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