Class LevelCeilingFilter

java.lang.Object
rma.util.logging.DecoratingLogFilter
rma.util.logging.LevelCeilingFilter
All Implemented Interfaces:
Filter

public class LevelCeilingFilter extends DecoratingLogFilter
The Class LevelCeilingFilter. Handlers have a configured level that acts like a floor. Before logging a message the handlers check that the message is at or above that floor. This class implements a level ceiling, classes must be at or below this ceiling to pass the filter.
  • Constructor Details

    • LevelCeilingFilter

      public LevelCeilingFilter()
  • Method Details

    • setLevel

      public void setLevel(Level levelProperty)
    • isLoggable

      public boolean isLoggable(LogRecord record)
      Specified by:
      isLoggable in interface Filter
      Overrides:
      isLoggable in class DecoratingLogFilter
    • getLevelProperty

      protected Level getLevelProperty(String name, Level defaultValue)
      Gets the level property. Based on package private method of same name in LogManager.
      Parameters:
      name - the name
      defaultValue - the default value
      Returns:
      the level property