| Modifier and Type | Field and Description |
|---|---|
| private final Pattern | |
| private final boolean | |
| private final String |
| Access | Constructor and Description |
|---|---|
| public | SubstituteFilter(final Pattern
the pattern to match pattern, final String the string replacement replacement, final boolean true if all occurrences should be replaced; false if only the first occurrenceConstruct a new instance. |
| public | SubstituteFilter(final String
the pattern to match patternString, final String the string replacement replacement, final boolean true if all occurrences should be replaced; false if only the first occurrenceConstruct a new instance. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true alwaysthe log record to inspect and modify record)Implements java. Apply the filter to the given log record. |
| pattern | back to summary |
|---|---|
| private final Pattern pattern | |
| replaceAll | back to summary |
|---|---|
| private final boolean replaceAll | |
| replacement | back to summary |
|---|---|
| private final String replacement | |
| SubstituteFilter | back to summary |
|---|---|
| public SubstituteFilter(final Pattern pattern, final String replacement, final boolean replaceAll) Construct a new instance. | |
| SubstituteFilter | back to summary |
|---|---|
| public SubstituteFilter(final String patternString, final String replacement, final boolean replaceAll) Construct a new instance. | |
| isLoggable | back to summary |
|---|---|
| public boolean isLoggable(final LogRecord record) Implements java. Apply the filter to the given log record.
The | |