log4net SDK Reference

LogManager.Exists Method (Assembly, String)

Returns the named logger if it exists.

[Visual Basic]
Overloads Public Shared Function Exists( _
   ByVal repositoryAssembly As Assembly, _
   ByVal name As String _
) As ILog
[C#]
public static ILog Exists(
   Assembly repositoryAssembly,
   string name
);

Parameters

repositoryAssembly
The assembly to use to lookup the repository.
name
The fully qualified logger name to look for.

Return Value

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

LogManager Class | log4net Namespace | LogManager.Exists Overload List