Top Description Inners Methods
org.jboss.logmanager.formatters

public Interface FormatStep

Known Direct Implementers
org.jboss.logmanager.formatters.Formatters.JustifyingFormatStep, org.jboss.logmanager.formatters.ColorPatternFormatter.ColorStep, org.jboss.logmanager.formatters.ColorPatternFormatter.LevelColorStep
Imports
java.util.logging.Formatter, org.jboss.logmanager.ExtLogRecord

A single format step which handles some part of rendering a log record.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static enum
FormatStep.ItemType

An enumeration of the types of items that can be rendered.

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

an estimate
estimateLength
()

Emit an estimate of the length of data which this step will produce.

public default FormatStep.ItemType

Returns:

the item type
getItemType
()

Get the item type of this step.

public default boolean

Returns:

true if caller information is required, otherwise false
isCallerInformationRequired
()

Indicates whether or not caller information is required for this format step.

public void
render(StringBuilder
the string builder to append to
builder
,
ExtLogRecord
the record being rendered
record
)

Render a part of the log record.

public default void
render(Formatter
the formatter to render to
formatter
,
StringBuilder
the string builder to append to
builder
,
ExtLogRecord
the record being rendered
record
)

Render a part of the log record to the given formatter.

Method Detail

estimateLengthback to summary
public 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:int

an estimate

getItemTypeback to summary
public default FormatStep.ItemType getItemType()

Get the item type of this step.

Returns:FormatStep.ItemType

the item type

isCallerInformationRequiredback to summary
public default boolean isCallerInformationRequired()

Indicates whether or not caller information is required for this format step.

Returns:boolean

true if caller information is required, otherwise false

renderback to summary
public void render(StringBuilder builder, ExtLogRecord record)

Render a part of the log record.

Parameters
builder:StringBuilder

the string builder to append to

record:ExtLogRecord

the record being rendered

renderback to summary
public default void render(Formatter formatter, StringBuilder builder, ExtLogRecord record)

Render a part of the log record to the given formatter.

Parameters
formatter:Formatter

the formatter to render to

builder:StringBuilder

the string builder to append to

record:ExtLogRecord

the record being rendered

org.jboss.logmanager.formatters back to summary

public final Enum FormatStep.ItemType

extends Enum<FormatStep.ItemType>
Class Inheritance

An enumeration of the types of items that can be rendered. Note that this enumeration may be expanded in the future, so unknown values should be handled gracefully as if GENERIC were used.

Field Summary

Modifier and TypeField and Description
public static final FormatStep.ItemType
public static final FormatStep.ItemType
COMPOUND

A compound step.

public static final FormatStep.ItemType
public static final FormatStep.ItemType
public static final FormatStep.ItemType
GENERIC

An item of unknown kind.

public static final FormatStep.ItemType
public static final FormatStep.ItemType
LEVEL

A log level.

public static final FormatStep.ItemType
public static final FormatStep.ItemType
public static final FormatStep.ItemType
MESSAGE

The log message without the exception trace.

public static final FormatStep.ItemType
public static final FormatStep.ItemType
public static final FormatStep.ItemType
public static final FormatStep.ItemType
public static final FormatStep.ItemType
public static final FormatStep.ItemType
public static final FormatStep.ItemType
public static final FormatStep.ItemType
public static final FormatStep.ItemType
public static final FormatStep.ItemType
public static final FormatStep.ItemType
public static final FormatStep.ItemType
public static final FormatStep.ItemType
public static final FormatStep.ItemType
public static final FormatStep.ItemType

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static FormatStep.ItemType
public static FormatStep.ItemType[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

CATEGORYback to summary
public static final FormatStep.ItemType CATEGORY
COMPOUNDback to summary
public static final FormatStep.ItemType COMPOUND

A compound step.

DATEback to summary
public static final FormatStep.ItemType DATE
EXCEPTION_TRACEback to summary
public static final FormatStep.ItemType EXCEPTION_TRACE
GENERICback to summary
public static final FormatStep.ItemType GENERIC

An item of unknown kind.

HOST_NAMEback to summary
public static final FormatStep.ItemType HOST_NAME
LEVELback to summary
public static final FormatStep.ItemType LEVEL

A log level.

LINE_SEPARATORback to summary
public static final FormatStep.ItemType LINE_SEPARATOR
MDCback to summary
public static final FormatStep.ItemType MDC
MESSAGEback to summary
public static final FormatStep.ItemType MESSAGE

The log message without the exception trace.

NDCback to summary
public static final FormatStep.ItemType NDC
PROCESS_IDback to summary
public static final FormatStep.ItemType PROCESS_ID
PROCESS_NAMEback to summary
public static final FormatStep.ItemType PROCESS_NAME
RELATIVE_TIMEback to summary
public static final FormatStep.ItemType RELATIVE_TIME
RESOURCE_KEYback to summary
public static final FormatStep.ItemType RESOURCE_KEY
SOURCE_CLASS_NAMEback to summary
public static final FormatStep.ItemType SOURCE_CLASS_NAME
SOURCE_FILE_NAMEback to summary
public static final FormatStep.ItemType SOURCE_FILE_NAME
SOURCE_LINE_NUMBERback to summary
public static final FormatStep.ItemType SOURCE_LINE_NUMBER
SOURCE_METHOD_NAMEback to summary
public static final FormatStep.ItemType SOURCE_METHOD_NAME
SOURCE_MODULE_NAMEback to summary
public static final FormatStep.ItemType SOURCE_MODULE_NAME
SOURCE_MODULE_VERSIONback to summary
public static final FormatStep.ItemType SOURCE_MODULE_VERSION
SYSTEM_PROPERTYback to summary
public static final FormatStep.ItemType SYSTEM_PROPERTY
TEXTback to summary
public static final FormatStep.ItemType TEXT
THREAD_IDback to summary
public static final FormatStep.ItemType THREAD_ID
THREAD_NAMEback to summary
public static final FormatStep.ItemType THREAD_NAME

Constructor Detail

ItemTypeback to summary
private ItemType()

Method Detail

valueOfback to summary
public static FormatStep.ItemType valueOf(String name)
valuesback to summary
public static FormatStep.ItemType[] values()