WrapperMap CreateNewWrapperObject Method | Apache log4net™ SDK Documentation

Creates the wrapper object for the specified logger.

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

C#
VB
C++
F#
Copy

    protected virtual ILoggerWrapper CreateNewWrapperObject(
    	ILogger logger
    )

    Protected Overridable Function CreateNewWrapperObject (
    	logger As ILogger
    ) As ILoggerWrapper

    protected:
    virtual ILoggerWrapper^ CreateNewWrapperObject(
    	ILogger^ logger
    )

    abstract CreateNewWrapperObject :
            logger : ILogger -> ILoggerWrapper
    override CreateNewWrapperObject :
            logger : ILogger -> ILoggerWrapper

#### Parameters

logger
  Type: log4net.Core
  ILogger
  The logger to wrap in a wrapper.

#### Return Value

Type: ILoggerWrapper
The wrapper object for the logger.
Remarks

This implementation uses the WrapperCreationHandler passed to the constructor to create the wrapper. This method can be overridden in a subclass.

See Also

#### Reference

WrapperMap Class
log4net.Core Namespace