log4net SDK Documentation - Microsoft .NET Framework 4.0 |
|
LogManager.Exists Method (String, String)
Returns the named logger if it exists.
[Visual Basic]
Overloads Public Shared Function Exists( _
ByVal
repository As
String, _
ByVal
name As
String _
) As
ILog
Parameters
-
repository
- The repository to lookup in.
-
name
- The fully qualified logger name to look for.
Return Value
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
LogManager Class | log4net Namespace | LogManager.Exists Overload List