public class PatternFormatter extends MultistepFormatter
| Constructor | Description |
|---|---|
PatternFormatter() |
Construct a new instance.
|
PatternFormatter(String pattern) |
Construct a new instance.
|
PatternFormatter(String pattern,
String colors) |
Construct a new instance.
|
| Modifier and Type | Method | Description |
|---|---|---|
String |
getColors() |
|
String |
getPattern() |
Get the current format pattern.
|
void |
setColors(String colors) |
Set the color map to use for log levels when %K{level} is used.
|
void |
setPattern(String pattern) |
Set the format pattern.
|
formatformatMessage, getHead, getTailformat, getSteps, isCallerCalculationRequired, setStepspublic PatternFormatter()
public PatternFormatter(String pattern)
pattern - the initial patternpublic String getPattern()
public void setPattern(String pattern)
pattern - the patternpublic void setColors(String colors)
The format is level:color,level:color,...
Where level is either a numerical value or one of the following constants:
| fatal |
| error |
| severe |
| warn |
| warning |
| info |
| config |
| debug |
| trace |
| fine |
| finer |
| finest |
Color is one of the following constants:
| clear |
| black |
| red |
| green |
| yellow |
| blue |
| magenta |
| cyan |
| white |
| brightblack |
| brightred |
| brightgreen |
| brightyellow |
| brightblue |
| brightmagenta |
| brightcyan |
| brightwhite |
colors - a colormap expression string described abovepublic String getColors()
Copyright © 2020 JBoss by Red Hat. All rights reserved.