PatternFormatter
public class MultistepFormatter extends ExtFormatter
Constructor | Description |
---|---|
MultistepFormatter() |
Construct a new instance.
|
MultistepFormatter(FormatStep[] steps) |
Construct a new instance.
|
Modifier and Type | Method | Description |
---|---|---|
java.lang.String |
format(ExtLogRecord record) |
Format a message using an extended log record.
|
FormatStep[] |
getSteps() |
Get a copy of the format steps.
|
boolean |
isCallerCalculationRequired() |
Determines whether or not this formatter will require caller, source level, information when a log record is
formatted.
|
void |
setSteps(FormatStep[] steps) |
Assign new format steps.
|
format
public MultistepFormatter(FormatStep[] steps)
steps
- the steps to execute to format the recordpublic MultistepFormatter()
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 recordpublic boolean isCallerCalculationRequired()
ExtFormatter
isCallerCalculationRequired
in class ExtFormatter
true
if the formatter will need caller information, otherwise false
LogRecord.getSourceClassName()
,
ExtLogRecord.getSourceFileName()
,
ExtLogRecord.getSourceLineNumber()
,
LogRecord.getSourceMethodName()
Copyright © 2018. All rights reserved.