LoggerManager ShutdownRepository Method (String) | Apache log4net™ SDK Documentation

Shuts down the repository for the repository specified.

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

C#
VB
C++
F#
Copy

    public static void ShutdownRepository(
    	string repository
    )

    Public Shared Sub ShutdownRepository (
    	repository As String
    )

    public:
    static void ShutdownRepository(
    	String^ repository
    )

    static member ShutdownRepository :
            repository : string -> unit

#### Parameters

repository
  Type: System
  String
  The repository to shutdown.

Remarks

Calling this method will safely close and remove all appenders in all the loggers including root contained in the repository for the repository specified.

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

LoggerManager Class
ShutdownRepository Overload
log4net.Core Namespace