Hierarchy Exists Method | Apache log4net™ SDK Documentation

Test if a logger exists

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

C#
VB
C++
F#
Copy

    public override ILogger Exists(
    	string name
    )

    Public Overrides Function Exists (
    	name As String
    ) As ILogger

    public:
    virtual ILogger^ Exists(
    	String^ name
    ) override

    abstract Exists :
            name : string -> ILogger
    override 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

#### Implements

ILoggerRepository
Exists(String)
Remarks

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

See Also

#### Reference

Hierarchy Class
log4net.Repository.Hierarchy Namespace