public class ConfigurableFormatter extends Formatter
Constructor and Description |
---|
ConfigurableFormatter() |
Modifier and Type | Method and Description |
---|---|
String |
format(LogRecord record)
Format the given LogRecord.
|
int |
getLevelForClass()
Return the record level at which the formatter must show the class and the method from which the record was emitted.
|
int |
getLevelForShowLevel()
Return the record level at which the formatter must show the level of the record.
|
boolean |
isShowingDate()
Return true if the date must be presented.
|
boolean |
isShowingOnTwoLines()
Return true if the results must be presented on two lines.
|
void |
setLevelForClass(int levelForClass)
Set the record level at which the formatter must show the class and the method from which the record was emitted.
|
void |
setLevelForShowLevel(int levelForShowLevel)
Set the record level at which the formatter must show the level of the record.
|
void |
setShowingDate(boolean showDate)
Set if the date must be presented.
|
void |
setShowingOnTwoLines(boolean showOnTwoLines)
Set if the results must be presented on two lines.
|
formatMessage, getHead, getTail
public boolean isShowingDate()
public void setShowingDate(boolean showDate)
showDate
- true if the date ust be presentedpublic boolean isShowingOnTwoLines()
public void setShowingOnTwoLines(boolean showOnTwoLines)
showOnTwoLines
- true if the results must be presented on two linespublic int getLevelForClass()
public void setLevelForClass(int levelForClass)
levelForClass
- the level at which the formatter must show the class and the methodpublic int getLevelForShowLevel()
public void setLevelForShowLevel(int levelForShowLevel)
levelForShowLevel
- the record level at which the formatter must show the level of the record