LoggerManager GetLogger Method (Assembly, String)Apache log4net™ SDK Documentation
Retrieves or creates a named logger.

Namespace: log4net.Core
Assembly: log4net (in log4net.dll) Version: 1.2.15.0 (1.2.15.0)
Syntax

public static ILogger GetLogger(
	Assembly repositoryAssembly,
	string name
)

Parameters

repositoryAssembly
Type: OnlineSystem.Reflection Assembly
The assembly to use to lookup the repository.
name
Type: OnlineSystem String
The name of the logger to retrieve.

Return Value

Type: ILogger
The logger with the name specified.
Remarks

Retrieves a logger named as the name parameter. If the named logger already exists, then the existing instance will be returned. Otherwise, a new instance is created.

By default, loggers do not have a set level but inherit it from the hierarchy. This is one of the central features of log4net.

See Also