log4net SDK Reference

LoggerManager.Shutdown Method 

Shuts down the log4net system.

[Visual Basic]
Public Shared Sub Shutdown()
[C#]
public static void Shutdown();

Remarks

Calling this method will safely close and remove all appenders in all the loggers including root contained in all the default repositories.

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

LoggerManager Class | log4net.Core Namespace