LoggerRepositorySkeleton Exists Method | Apache log4net™ SDK Documentation

Test if logger exists

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

C#
VB
C++
F#
Copy

    public abstract ILogger Exists(
    	string name
    )

    Public MustOverride Function Exists (
    	name As String
    ) As ILogger

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

    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

#### Implements

ILoggerRepository
Exists(String)
Remarks

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

See Also

#### Reference

LoggerRepositorySkeleton Class
log4net.Repository Namespace