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

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

public static ILog Exists(
	Assembly repositoryAssembly,
	string name
)

Parameters

repositoryAssembly
Type: OnlineSystem.Reflection Assembly
The assembly to use to lookup the repository.
name
Type: OnlineSystem String
The fully qualified logger name to look for.

Return Value

Type: ILog
The logger, or null if the logger doesn't exist in the specified assembly's repository.
Remarks

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

See Also