public class JsonFormatter<T extends JsonFormatter<T>> extends HashMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
JsonFormatter(String key) |
| Modifier and Type | Method and Description |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds a property change listener
|
Boolean |
compact()
If true will format the JSON on one line.
|
T |
compact(Boolean value)
If true will format the JSON on one line.
|
String |
dateFormat()
The date format to use as understood by
SimpleDateFormat. |
T |
dateFormat(String value)
The date format to use as understood by
SimpleDateFormat. |
String |
dateSeparator()
The separator between the date and the rest of the formatted log message.
|
T |
dateSeparator(String value)
The separator between the date and the rest of the formatted log message.
|
Boolean |
escapeControlCharacters()
If true will escape all control characters (ascii entries with a decimal
value < 32) with the ascii code in octal, e.g.' becomes '#012'.
|
T |
escapeControlCharacters(Boolean value)
If true will escape all control characters (ascii entries with a decimal
value < 32) with the ascii code in octal, e.g.' becomes '#012'.
|
Boolean |
escapeNewLine()
If true will escape all new lines with the ascii code in octal, e.g.
|
T |
escapeNewLine(Boolean value)
If true will escape all new lines with the ascii code in octal, e.g.
|
String |
getKey() |
Boolean |
includeDate()
Whether or not to include the date in the formatted log record.
|
T |
includeDate(Boolean value)
Whether or not to include the date in the formatted log record.
|
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes a property change listener
|
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesequals, hashCode, toStringpublic JsonFormatter(String key)
public String getKey()
public void addPropertyChangeListener(PropertyChangeListener listener)
public void removePropertyChangeListener(PropertyChangeListener listener)
public Boolean compact()
public T compact(Boolean value)
public String dateFormat()
SimpleDateFormat. Will be ignored if
include-date="false".public T dateFormat(String value)
SimpleDateFormat. Will be ignored if
include-date="false".public String dateSeparator()
public T dateSeparator(String value)
public Boolean escapeControlCharacters()
public T escapeControlCharacters(Boolean value)
public Boolean escapeNewLine()
public T escapeNewLine(Boolean value)
public Boolean includeDate()
Copyright © 2017 JBoss by Red Hat. All rights reserved.