Constructor and Description |
---|
PathFilter() |
Modifier and Type | Method and Description |
---|---|
int |
getFilterLevel()
Return the filter level.
|
Set<String> |
getPaths()
Return the paths which will be filtered.
|
boolean |
isLoggable(LogRecord record)
Return true if the record if Loggable.
|
void |
setFilterLevel(int filterLevel)
Set the filter level.
|
void |
setPaths(Set<String> paths)
Set the paths which will be filtered.
|
public int getFilterLevel()
getPaths()
will be loggable. The default if INFO.public void setFilterLevel(int filterLevel)
getPaths()
will be loggable. The default if INFO.filterLevel
- the filter Levelpublic Set<String> getPaths()
public void setPaths(Set<String> paths)
paths
- the paths to setpublic boolean isLoggable(LogRecord record)
getFilterLevel()
, then the method will
return true (the LogRecord is loggable}setPaths(java.util.Set)
isLoggable
in interface Filter
record
- the LogRecord