record.
Note that including details can be expensive in terms of calculating the caller.
By default the record delimiter is set to \n.
| Modifier and Type | Class and Description |
|---|---|
| public static enum | StructuredFormatter.
Defines the way a cause will be formatted. |
| protected static interface | StructuredFormatter.
A generator used to create the structured output. |
| public static enum | StructuredFormatter.
The key used for the structured log record data. |
| Modifier and Type | Field and Description |
|---|---|
| private DateTimeFormatter | |
| private volatile String | |
| private volatile StructuredFormatter. | |
| private final Map | |
| private final String | |
| private String | |
| private Map | |
| private volatile boolean | |
| private int | |
| private final StringBuilderWriter | |
| private ZoneId |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected | |
| protected | |
| private | StructuredFormatter(final Map<StructuredFormatter.
|
| Modifier and Type | Method and Description |
|---|---|
| private void | addException(final StructuredFormatter.
|
| private void | addStackTraceElements(final StructuredFormatter.
|
| protected void | after(final StructuredFormatter.
the generator to use generator,the log record record)Invoked after the structured data has been added to the generator. |
| protected void | before(final StructuredFormatter.
the generator to use generator,the log record record)Invoked before the structured data is added to the generator. |
| protected abstract StructuredFormatter. | Returns: the generator to useCreates the generator used to create the structured data. |
| public final synchronized String | format(final ExtLogRecord
the log record record)Implements abstract org. Format a message using an extended log record. |
| public synchronized DateTimeFormatter | Returns: the current formatterReturns the current formatter used to format a records date and time. |
| public StructuredFormatter. | Returns: the output type for exceptionsGet the current output type for exceptions. |
| protected final String | Returns: the overridden key or the default key if no override existsthe default key defaultKeyChecks to see if the key should be overridden. |
| public String | Returns: a string representation of the key overrides ornull if no overrides were configuredA string representation of the key overrides. |
| public String | Returns: the meta data string ornull if one was not setReturns the value set for meta data. |
| public String | Returns: the end of record delimiter ornull if no delimiter is desiredReturns the character used to indicate the record has is complete. |
| public synchronized ZoneId | Returns: the current zone idReturns the current zone id used for the date and time formatter. |
| public boolean | isCallerCalculationRequired()
Overrides org. Determines whether or not this formatter will require caller, source level, information when a log record is formatted. |
| protected boolean | Returns: true if detailed output should be written, otherwise falseChecks the exception output type and determines if detailed output should be written. |
| protected boolean | Returns: true if formatted exception output should be written, otherwise falseChecks the exception output type and determines if formatted output should be written. |
| private static boolean | |
| public boolean | Returns: true if details should be printed, otherwise falseIndicates whether or not details should be printed. |
| public synchronized void | setDateFormat(final String
the pattern to use or pattern)null to use a default patternSets the pattern to use when formatting the date. |
| public void | setExceptionOutputType(final StructuredFormatter.
the desired output type, if exceptionOutputTypenull ExceptionOutputType#DETAILED is usedSet the output type for exceptions. |
| public synchronized void | setMetaData(final String
the meta data to set or metaData)null to not format any meta dataSets the meta data to use in the structured format. |
| public void | setPrintDetails(final boolean
true if details should be printedSets whether or not details should be printed. |
| public void | setRecordDelimiter(final String
the delimiter to be used or eorDelimiter)null to not use a delimiterSets the value to be used to indicate the end of a record. |
| public void | setZoneId(final String
the zone id or zoneId)null to use the system defaultSets the |