Gemstone Common Library
Show/Hide TOC

# LogSuppression Class

Manages the suppression of log messages

## Definition

Namespace: Gemstone.Diagnostics
Assembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.178 -- Release Build+f8a23028fef00502c7e35bcc3934c260e8a0eb56
C#
View Source Request Example

    public static class LogSuppression

VB
View Source Request Example

    Public NotInheritable Class LogSuppression

C++
View Source Request Example

    public ref class LogSuppression abstract sealed

JavaScript
View Source Request Example

    Gemstone.Diagnostics.LogSuppression = function();

    Type.createClass(
    	'Gemstone.Diagnostics.LogSuppression');

Inheritance
  Object LogSuppression

## Properties

ShouldSuppressFirstChanceLogMessages | Gets if First Chance Exception Log Messages should be suppressed.
ShouldSuppressLogMessages | Gets if Log Messages should be suppressed.

## Methods

OverrideSuppressLogMessages | Sets a flag that will allow log messages to be raised again. Remember to dispose of the callback to remove this override.
SuppressFirstChanceExceptionLogMessages | Sets a flag that will prevent First Chance Exception log messages from being raised on this thread. Remember to dispose of the callback to remove this suppression.
SuppressLogMessages | Sets a flag that will prevent log messages from being raised on this thread. Remember to dispose of the callback to remove this suppression.

## See Also

#### Reference

Gemstone.Diagnostics Namespace