Class ConditionalLogSilencer

java.lang.Object
de.foellix.aql.LogSilencer
de.foellix.aql.ConditionalLogSilencer
All Implemented Interfaces:
AutoCloseable

public class ConditionalLogSilencer extends LogSilencer
  • Constructor Details

    • ConditionalLogSilencer

      public ConditionalLogSilencer(int silenceIncludingLogLevel)
      The area is completely silenced until a specific level.
      Parameters:
      silenceIncludingLogLevel - the level (e.g. when set to DEBUG, the area will be silenced unless the current log level is higher than DEBUG.)
    • ConditionalLogSilencer

      public ConditionalLogSilencer(int silenceIncludingLogLevel, int silenceLevel)
      The area is silenced until a specific level.
      Parameters:
      silenceIncludingLogLevel - the level (e.g. when set to DEBUG, the area will be silenced unless the current log level is higher than DEBUG.)
      silenceLevel - log level to be silenced