WrapperMap ClassApache log4net™ SDK Documentation
Maps between logger objects and wrapper objects.
Inheritance Hierarchy

SystemObject
  log4net.CoreWrapperMap

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

public class WrapperMap

The WrapperMap type exposes the following members.

Constructors

  NameDescription
Public methodWrapperMap
Initializes a new instance of the WrapperMap
Top
Properties

  NameDescription
Protected propertyRepositories
Gets the map of logger repositories.
Top
Methods

  NameDescription
Protected methodCreateNewWrapperObject
Creates the wrapper object for the specified logger.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetWrapper
Gets the wrapper object for the specified logger.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodRepositoryShutdown
Called when a monitored repository shutdown event is received.
Public methodToString
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