|
JBoss Log Manager 1.4.1.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.logging.Formatter
org.jboss.logmanager.ExtFormatter
org.jboss.logmanager.formatters.MultistepFormatter
org.jboss.logmanager.formatters.PatternFormatter
public class PatternFormatter
A formatter which uses a text pattern to format messages.
| Constructor Summary | |
|---|---|
PatternFormatter()
Construct a new instance. |
|
PatternFormatter(String pattern)
Construct a new instance. |
|
PatternFormatter(String pattern,
String colors)
Construct a new instance. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.jboss.logmanager.formatters.MultistepFormatter |
|---|
format, getSteps, setSteps |
| Methods inherited from class org.jboss.logmanager.ExtFormatter |
|---|
format |
| Methods inherited from class java.util.logging.Formatter |
|---|
formatMessage, getHead, getTail |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PatternFormatter()
public PatternFormatter(String pattern)
pattern - the initial pattern
public PatternFormatter(String pattern,
String colors)
pattern - the initial patterncolors - the color map to use| Method Detail |
|---|
public 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()
|
JBoss Log Manager 1.4.1.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||