Package org.jboss.logmanager.formatters
Class CompoundFormatStep
java.lang.Object
org.jboss.logmanager.formatters.CompoundFormatStep
- All Implemented Interfaces:
FormatStep
A compound format step. Create via
FormatStep.createCompoundStep(FormatStep...).-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jboss.logmanager.formatters.FormatStep
FormatStep.ItemType -
Field Summary
Fields inherited from interface org.jboss.logmanager.formatters.FormatStep
NO_STEPS, NULL_STEP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGet child steps that compose this step.intEmit an estimate of the length of data which this step will produce.getChildStep(int idx) Get the item type of this step.booleanIndicates whether or not caller information is required for this format step.voidrender(StringBuilder builder, ExtLogRecord record) Render a part of the log record.voidrender(Formatter formatter, StringBuilder builder, ExtLogRecord record) Render a part of the log record to the given formatter.
-
Constructor Details
-
CompoundFormatStep
-
-
Method Details
-
render
Description copied from interface:FormatStepRender a part of the log record to the given formatter.- Specified by:
renderin interfaceFormatStep- Parameters:
formatter- the formatter to render tobuilder- the string builder to append torecord- the record being rendered
-
render
Description copied from interface:FormatStepRender a part of the log record.- Specified by:
renderin interfaceFormatStep- Parameters:
builder- the string builder to append torecord- the record being rendered
-
estimateLength
public int estimateLength()Description copied from interface:FormatStepEmit 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.- Specified by:
estimateLengthin interfaceFormatStep- Returns:
- an estimate
-
isCallerInformationRequired
public boolean isCallerInformationRequired()Description copied from interface:FormatStepIndicates whether or not caller information is required for this format step.- Specified by:
isCallerInformationRequiredin interfaceFormatStep- Returns:
trueif caller information is required, otherwisefalse
-
getItemType
Description copied from interface:FormatStepGet the item type of this step.- Specified by:
getItemTypein interfaceFormatStep- Returns:
- the item type
-
childStepCount
public int childStepCount()- Specified by:
childStepCountin interfaceFormatStep
-
getChildStep
- Specified by:
getChildStepin interfaceFormatStep
-
childSteps
Description copied from interface:FormatStepGet child steps that compose this step.- Specified by:
childStepsin interfaceFormatStep- Returns:
- the child steps (not
null)
-