log4net SDK Reference

ILoggerRepository.Exists Method 

Check if the named logger exists in the repository. If so return its reference, otherwise returns null.

[Visual Basic]
Function Exists( _
   ByVal name As String _
) As ILogger
[C#]
ILogger Exists(
   string name
);

Parameters

name
The name of the logger to lookup

Return Value

The Logger object with the name specified

Remarks

If the names logger exists it is returned, otherwise null is returned.

See Also

ILoggerRepository Interface | log4net.Repository Namespace