Package org.jboss.logmanager.formatters
Interface FormatStep
-
public interface FormatStepA single format step which handles some part of rendering a log record.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description intestimateLength()Emit an estimate of the length of data which this step will produce.default booleanisCallerInformationRequired()Indicates whether or not caller information is required for this format step.voidrender(java.lang.StringBuilder builder, ExtLogRecord record)Render a part of the log record.
-
-
-
Method Detail
-
render
void render(java.lang.StringBuilder builder, ExtLogRecord record)Render a part of the log record.- Parameters:
builder- 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
-
-