Hierarchy Shutdown Method | Apache log4net™ SDK Documentation

Shutting down a hierarchy will safely close and remove all appenders in all loggers including the root logger.

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 void Shutdown()

    Public Overrides Sub Shutdown

    public:
    virtual void Shutdown() override

    abstract Shutdown : unit -> unit
    override Shutdown : unit -> unit

#### Implements

ILoggerRepository
Shutdown
Remarks

Shutting down a hierarchy will safely close and remove all appenders in all loggers including the root logger.

Some appenders need to be closed before the application exists. Otherwise, pending logging events might be lost.

The Shutdown method is careful to close nested appenders before closing regular appenders. This is allows configurations where a regular appender is attached to a logger and again to a nested appender.

See Also

#### Reference

Hierarchy Class
log4net.Repository.Hierarchy Namespace