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

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

public static ILog Exists(
	string repository,
	string name
)

Parameters

repository
Type: SystemString
The repository to lookup in.
name
Type: SystemString
The fully qualified logger name to look for.

Return Value

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

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

See Also

Reference