WrapperMap GetWrapper Method | Apache log4net™ SDK Documentation

Gets 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

    public virtual ILoggerWrapper GetWrapper(
    	ILogger logger
    )

    Public Overridable Function GetWrapper (
    	logger As ILogger
    ) As ILoggerWrapper

    public:
    virtual ILoggerWrapper^ GetWrapper(
    	ILogger^ logger
    )

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

#### Parameters

logger
  Type: log4net.Core
  ILogger

  [Missing <param name="logger"/> documentation for "M:log4net.Core.WrapperMap.GetWrapper(log4net.Core.ILogger)"]

#### Return Value

Type: ILoggerWrapper
The wrapper object for the specified logger
Remarks

If the logger is null then the corresponding wrapper is null.

Looks up the wrapper it it has previously been requested and returns it. If the wrapper has never been requested before then the CreateNewWrapperObject(ILogger) virtual method is called.

See Also

#### Reference

WrapperMap Class
log4net.Core Namespace