public class PatternFormatter extends MultistepFormatter
Constructor and 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 and 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.
|
format, getSteps, setSteps
format
formatMessage, getHead, getTail
public 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 © 2017 JBoss by Red Hat. All rights reserved.