Hierarchy ResetConfiguration Method | Apache log4net™ SDK Documentation

Reset all values contained in this hierarchy instance to their default.

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 ResetConfiguration()

    Public Overrides Sub ResetConfiguration

    public:
    virtual void ResetConfiguration() override

    abstract ResetConfiguration : unit -> unit
    override ResetConfiguration : unit -> unit

#### Implements

ILoggerRepository
ResetConfiguration
Remarks

Reset all values contained in this hierarchy instance to their default. This removes all appenders from all loggers, sets the level of all non-root loggers to null, sets their additivity flag to true and sets the level of the root logger to Debug. Moreover, message disabling is set its default "off" value.

Existing loggers are not removed. They are just reset.

This method should be used sparingly and with care as it will block all logging until it is completed.

See Also

#### Reference

Hierarchy Class
log4net.Repository.Hierarchy Namespace