Apache log4net� SDK Documentation - Microsoft .NET Framework 4.0

Hierarchy.Shutdown�Method�

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

[Visual�Basic]
Overrides�Public�Sub�Shutdown()�_
����Implements�ILoggerRepository.Shutdown
[C#]
public�override�void�Shutdown();

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

Hierarchy Class | log4net.Repository.Hierarchy Namespace