WrapperMap Class | Apache log4net™ SDK Documentation

Maps between logger objects and wrapper objects.
Inheritance Hierarchy

System
Object
log4net.Core
WrapperMap

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

C#
VB
C++
F#
Copy

    public class WrapperMap

    Public Class WrapperMap

    public ref class WrapperMap

    type WrapperMap =  class end

The WrapperMap type exposes the following members.

Constructors

| Name | Description
--- | --- | ---
| WrapperMap | Initializes a new instance of the WrapperMap

Top
Properties

| Name | Description
--- | --- | ---
| Repositories | Gets the map of logger repositories.

Top
Methods

| Name | Description
--- | --- | ---
| CreateNewWrapperObject | Creates the wrapper object for the specified logger.
| Equals | Determines whether the specified Object is equal to the current Object. (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 | Returns a String that represents the current Object. (Inherited from Object.)

Top
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

#### Reference

log4net.Core Namespace