WrapperMap.GetWrapper Method
WrapperMapGetWrapper 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

public virtual ILoggerWrapper GetWrapper(
	ILogger logger
)

Parameters

logger
Type: log4net.CoreILogger

[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