Maps between logger objects and wrapper objects.
Inheritance Hierarchy
log4net.CoreWrapperMap
Namespace: log4net.Core
Assembly: log4net (in log4net.dll) Version: 2.0.6.0-.NET 4.0
Syntax
The WrapperMap type exposes the following members.
Constructors
Name | Description | |
---|---|---|
WrapperMap |
Initializes a new instance of the WrapperMap |
Properties
Name | Description | |
---|---|---|
Repositories |
Gets the map of logger repositories.
|
Methods
Name | Description | |
---|---|---|
CreateNewWrapperObject |
Creates the wrapper object for the specified logger.
| |
Equals | (Inherited from Object.) | |
Finalize |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.) | |
GetHashCode |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
GetType |
Gets the Type of the current instance.
(Inherited from Object.) | |
GetWrapper |
Gets the wrapper object for the specified logger.
| |
MemberwiseClone |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
RepositoryShutdown |
Called when a monitored repository shutdown event is received.
| |
ToString | (Inherited from Object.) |
Remarks
This class maintains a mapping between ILogger objects and ILoggerWrapper objects. Use the GetWrapper(ILogger) method to lookup the ILoggerWrapper for the specified ILogger.
New wrapper instances are created by the CreateNewWrapperObject(ILogger) method. The default behavior is for this method to delegate construction of the wrapper to the WrapperCreationHandler delegate supplied to the constructor. This allows specialization of the behavior without requiring subclassing of this type.
See Also