Package com.puppycrawl.tools.checkstyle
Class Main.OnlyCheckstyleLoggersFilter
- java.lang.Object
-
- com.puppycrawl.tools.checkstyle.Main.OnlyCheckstyleLoggersFilter
-
- All Implemented Interfaces:
Filter
- Enclosing class:
- Main
private static final class Main.OnlyCheckstyleLoggersFilter extends Object implements Filter
Log Filter used in debug mode.
-
-
Field Summary
Fields Modifier and Type Field Description private String
packageName
Name of the package used to filter on.
-
Constructor Summary
Constructors Modifier Constructor Description private
OnlyCheckstyleLoggersFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isLoggable(LogRecord logRecord)
Returns whether the specified logRecord should be logged.
-
-
-
Field Detail
-
packageName
private final String packageName
Name of the package used to filter on.
-
-
Constructor Detail
-
OnlyCheckstyleLoggersFilter
private OnlyCheckstyleLoggersFilter()
-
-
Method Detail
-
isLoggable
public boolean isLoggable(LogRecord logRecord)
Returns whether the specified logRecord should be logged.- Specified by:
isLoggable
in interfaceFilter
- Parameters:
logRecord
- the logRecord to log- Returns:
- true if the logger name is in the package of this class or a subpackage
-
-