public class JsonFormatter<T extends JsonFormatter<T>> extends Object
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 String getKey()
public void addPropertyChangeListener(PropertyChangeListener listener)
public void removePropertyChangeListener(PropertyChangeListener listener)
public Boolean compact()
public T compact(Boolean value)
public String dateFormat()
public T dateFormat(String value)
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 © 2018 JBoss by Red Hat. All rights reserved.