QuietMode Property

log4net SDK Reference |

# LogLog.QuietMode Property

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

[Visual Basic]
Public Shared Property QuietMode As Boolean
[C#]
public static bool QuietMode {get; set;}

#### Property Value

`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.

#### Example

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

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

#### See Also

LogLog Class | log4net.Util Namespace