Assembly: log4net (in log4net.dll) Version: 184.108.40.206-.NET 4.0
public static void ShutdownRepository()
Public Shared Sub ShutdownRepository
public: static void ShutdownRepository()
static member ShutdownRepository : unit -> unit
Calling this method will safely close and remove all appenders in all the loggers including root contained in the default repository.
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.