Package org.jboss.logmanager.formatters
Interface FormatStep
- All Known Implementing Classes:
CompoundFormatStep
public interface FormatStep
A single format step which handles some part of rendering a log record.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumAn enumeration of the types of items that can be rendered. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final FormatStep[]An array of no steps.static final FormatStep -
Method Summary
Modifier and TypeMethodDescriptiondefault intdefault FormatStep[]Get child steps that compose this step.static FormatStepcreateCompoundStep(FormatStep... steps) intEmit an estimate of the length of data which this step will produce.default FormatStepgetChildStep(int idx) default FormatStep.ItemTypeGet the item type of this step.default booleanIndicates whether or not caller information is required for this format step.voidrender(StringBuilder builder, ExtLogRecord record) Render a part of the log record.default voidrender(Formatter formatter, StringBuilder builder, ExtLogRecord record) Render a part of the log record to the given formatter.
-
Field Details
-
NO_STEPS
An array of no steps. -
NULL_STEP
-
-
Method Details
-
createCompoundStep
-
render
Render a part of the log record.- Parameters:
builder- the string builder to append torecord- the record being rendered
-
render
Render a part of the log record to the given formatter.- Parameters:
formatter- the formatter to render tobuilder- the string builder to append torecord- the record being rendered
-
estimateLength
int estimateLength()Emit an estimate of the length of data which this step will produce. The more accurate the estimate, the more likely the format operation will be performant.- Returns:
- an estimate
-
isCallerInformationRequired
default boolean isCallerInformationRequired()Indicates whether or not caller information is required for this format step.- Returns:
trueif caller information is required, otherwisefalse
-
childSteps
Get child steps that compose this step.- Returns:
- the child steps (not
null)
-
childStepCount
default int childStepCount() -
getChildStep
-
getItemType
Get the item type of this step.- Returns:
- the item type
-