Class Main.OnlyCheckstyleLoggersFilter

  • All Implemented Interfaces:
    java.util.logging.Filter
    Enclosing class:
    Main

    private static final class Main.OnlyCheckstyleLoggersFilter
    extends java.lang.Object
    implements java.util.logging.Filter
    Log Filter used in debug mode.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String packageName
      Name of the package used to filter on.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isLoggable​(java.util.logging.LogRecord logRecord)
      Returns whether the specified logRecord should be logged.
      • Methods inherited from class java.lang.Object

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

      • packageName

        private final java.lang.String packageName
        Name of the package used to filter on.
    • Method Detail

      • isLoggable

        public boolean isLoggable​(java.util.logging.LogRecord logRecord)
        Returns whether the specified logRecord should be logged.
        Specified by:
        isLoggable in interface java.util.logging.Filter
        Parameters:
        logRecord - the logRecord to log
        Returns:
        true if the logger name is in the package of this class or a subpackage