log4net SDK Reference |

# Hierarchy.Exists Method

Test if a logger exists

[Visual Basic]
Overrides Public Function Exists( _
ByVal name As String _
) As ILogger _
Implements ILoggerRepository.Exists
[C#]
public override ILogger Exists(
string name
);

#### Parameters

name
  The name of the logger to lookup

#### Return Value

The Logger object with the name specified

#### Implements

ILoggerRepository.Exists

#### Remarks

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

#### See Also

Hierarchy Class | log4net.Repository.Hierarchy Namespace