LogLog QuietMode Property | Apache log4net™ SDK Documentation

Gets or sets a value indicating whether log4net should generate no output from internal logging, not even for errors.

Namespace: log4net.Util
Assembly: log4net (in log4net.dll) Version: 2.0.8.0-.NET 4.0
Syntax

C#
VB
C++
F#
Copy

    public static bool QuietMode { get; set; }

    Public Shared Property QuietMode As Boolean
    	Get
    	Set

    public:
    static property bool QuietMode {
    	bool get ();
    	void set (bool value);
    }

    static member QuietMode : bool with get, set

#### Property Value

Type: Boolean
true if log4net should generate no output at all from internal logging, otherwise false.
Remarks

When set to true will cause internal logging at all levels to be suppressed. This means that no warning or error reports will be logged. This option overrides the InternalDebugging setting and disables all debug also.

This value can be set by setting the application setting log4net.Internal.Quiet in the application configuration file.

The default value is false, i.e. internal logging is not disabled.

Examples

The following example disables internal logging using the application configuration file :
Copy

    <configuration><appSettings><add key="log4net.Internal.Quiet" value="true" /></appSettings></configuration>

See Also

#### Reference

LogLog Class
log4net.Util Namespace