LoggerManager Exists Method (String, String) | Apache log4net™ SDK Documentation

Returns the named logger if it exists.

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

C#
VB
C++
F#
Copy

    public static ILogger Exists(
    	string repository,
    	string name
    )

    Public Shared Function Exists (
    	repository As String,
    	name As String
    ) As ILogger

    public:
    static ILogger^ Exists(
    	String^ repository,
    	String^ name
    )

    static member Exists :
            repository : string *
            name : string -> ILogger

#### Parameters

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

#### Return Value

Type: ILogger
The logger found, or null if the named logger does not 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

LoggerManager Class
Exists Overload
log4net.Core Namespace