| 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 java.text.SimpleDateFormat.
|
T |
dateFormat(String value)
The date format to use as understood by java.text.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
|
public JsonFormatter(String key)
public void addPropertyChangeListener(PropertyChangeListener listener)
public void removePropertyChangeListener(PropertyChangeListener listener)
@ModelNodeBinding(detypedName="compact") public Boolean compact()
public T compact(Boolean value)
@ModelNodeBinding(detypedName="date-format") public String dateFormat()
public T dateFormat(String value)
@ModelNodeBinding(detypedName="date-separator") public String dateSeparator()
public T dateSeparator(String value)
@ModelNodeBinding(detypedName="escape-control-characters") public Boolean escapeControlCharacters()
public T escapeControlCharacters(Boolean value)
@ModelNodeBinding(detypedName="escape-new-line") public Boolean escapeNewLine()
public T escapeNewLine(Boolean value)
@ModelNodeBinding(detypedName="include-date") public Boolean includeDate()
Copyright © 2019 JBoss by Red Hat. All rights reserved.