LoggerManagerExists Method (Assembly, String)Apache log4net™ SDK Documentation
Returns the named logger if it exists.

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

public static ILogger Exists(
	Assembly repositoryAssembly,
	string name
)

Parameters

repositoryAssembly
Type: System.ReflectionAssembly
The assembly to use to lookup the repository.
name
Type: SystemString
The fully qualified logger name to look for.

Return Value

Type: ILogger
The logger found, or null if the named logger does not exist in the specified assembly's repository.
Remarks

If the named logger exists (in the specified assembly's repository) then it returns a reference to the logger, otherwise it returns null.

See Also

Reference