public class MultistepFormatter extends ExtFormatter
Modifier and Type | Field and Description |
---|---|
private int |
builderLength |
private static FormatStep[] |
EMPTY_STEPS |
private FormatStep[] |
steps |
Constructor and Description |
---|
MultistepFormatter()
Construct a new instance.
|
MultistepFormatter(FormatStep[] steps)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
private void |
calculateBuilderLength() |
java.lang.String |
format(ExtLogRecord record)
Format a message using an extended log record.
|
FormatStep[] |
getSteps()
Get a copy of the format steps.
|
void |
setSteps(FormatStep[] steps)
Assign new format steps.
|
format
private volatile FormatStep[] steps
private volatile int builderLength
private static final FormatStep[] EMPTY_STEPS
public MultistepFormatter(FormatStep[] steps)
steps
- the steps to execute to format the recordpublic MultistepFormatter()
private void calculateBuilderLength()
public FormatStep[] getSteps()
public void setSteps(FormatStep[] steps)
steps
- the new format stepspublic java.lang.String format(ExtLogRecord record)
format
in class ExtFormatter
record
- the log record