Class LevelChangingFilter

  • All Implemented Interfaces:
    java.util.logging.Filter

    public final class LevelChangingFilter
    extends java.lang.Object
    implements java.util.logging.Filter
    A filter which modifies the log record with a new level if the nested filter evaluates true for that record.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.logging.Level newLevel  
    • Constructor Summary

      Constructors 
      Constructor Description
      LevelChangingFilter​(java.util.logging.Level newLevel)
      Construct a new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isLoggable​(java.util.logging.LogRecord record)
      Apply the filter to this log record.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • newLevel

        private final java.util.logging.Level newLevel
    • Constructor Detail

      • LevelChangingFilter

        public LevelChangingFilter​(java.util.logging.Level newLevel)
        Construct a new instance.
        Parameters:
        newLevel - the level to change to
    • Method Detail

      • isLoggable

        public boolean isLoggable​(java.util.logging.LogRecord record)
        Apply the filter to this log record.
        Specified by:
        isLoggable in interface java.util.logging.Filter
        Parameters:
        record - the record to inspect and possibly update
        Returns:
        true always