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

Resets all values contained in this repository instance to their defaults.

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

    Public Shared Sub ResetConfiguration (
    	repository As String
    )

    public:
    static void ResetConfiguration(
    	String^ repository
    )

    static member ResetConfiguration :
            repository : string -> unit

#### Parameters

repository
  Type: System
  String
  The repository to reset.

Remarks

Resets all values contained in the repository instance to their defaults. 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.

See Also

#### Reference

LoggerManager Class
ResetConfiguration Overload
log4net.Core Namespace