Package org.jboss.logmanager.formatters
Class CompoundFormatStep
- java.lang.Object
-
- org.jboss.logmanager.formatters.CompoundFormatStep
-
- All Implemented Interfaces:
FormatStep
public class CompoundFormatStep extends Object implements FormatStep
A compound format step. Create viaFormatStep.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 Modifier Constructor Description protectedCompoundFormatStep(FormatStep[] clonedSteps)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intchildStepCount()FormatStep[]childSteps()Get child steps that compose this step.intestimateLength()Emit an estimate of the length of data which this step will produce.FormatStepgetChildStep(int idx)FormatStep.ItemTypegetItemType()Get the item type of this step.booleanisCallerInformationRequired()Indicates 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 Detail
-
CompoundFormatStep
protected CompoundFormatStep(FormatStep[] clonedSteps)
-
-
Method Detail
-
render
public void render(Formatter formatter, StringBuilder builder, ExtLogRecord record)
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
public void render(StringBuilder builder, ExtLogRecord record)
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
public FormatStep.ItemType 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
public FormatStep getChildStep(int idx)
- Specified by:
getChildStepin interfaceFormatStep
-
childSteps
public FormatStep[] childSteps()
Description copied from interface:FormatStepGet child steps that compose this step.- Specified by:
childStepsin interfaceFormatStep- Returns:
- the child steps (not
null)
-
-