log4net SDK Reference

LogManager.Exists Method (String)

Returns the named logger if it exists.

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

Parameters

name
The fully qualified logger name to look for.

Return Value

The logger found, or null if no logger could be found.

Remarks

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

See Also

LogManager Class | log4net Namespace | LogManager.Exists Overload List