ILoggerRepository Exists Method | Apache log4net™ SDK Documentation

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

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

C#
VB
C++
F#
Copy

    ILogger Exists(
    	string name
    )

    Function Exists (
    	name As String
    ) As ILogger

    ILogger^ Exists(
    	String^ name
    )

    abstract Exists :
            name : string -> ILogger

#### Parameters

name
  Type: System
  String
  The name of the logger to lookup

#### Return Value

Type: ILogger
The Logger object with the name specified
Remarks

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

See Also

#### Reference

ILoggerRepository Interface
log4net.Repository Namespace