public class JsonFormatter extends StructuredFormatter
source class namesource file namesource method namesource line numberStructuredFormatter.Generator, StructuredFormatter.KeyDEFAULT_DATE_FORMAT| Constructor and Description |
|---|
JsonFormatter()
Creates a new JSON formatter.
|
JsonFormatter(Map<StructuredFormatter.Key,String> keyOverrides)
Creates a new JSON formatter.
|
| Modifier and Type | Method and Description |
|---|---|
protected StructuredFormatter.Generator |
createGenerator(Writer writer)
Creates the generator used to create the structured data.
|
boolean |
isPrettyPrint()
Indicates whether or not pretty printing is enabled.
|
void |
setPrettyPrint(boolean b)
Turns on or off pretty printing.
|
after, before, format, getDateFormat, getKey, getMetaData, isAppendEndOfLine, isPrintDetails, setAppendEndOfLine, setDateFormat, setMetaData, setPrintDetailsformatMessage, getHead, getTailpublic JsonFormatter()
public JsonFormatter(Map<StructuredFormatter.Key,String> keyOverrides)
keyOverrides - a map of overrides for the default keyspublic boolean isPrettyPrint()
true if pretty printing is enabled, otherwise falsepublic void setPrettyPrint(boolean b)
b - true to turn on pretty printing or false to turn it offprotected StructuredFormatter.Generator createGenerator(Writer writer)
StructuredFormattercreateGenerator in class StructuredFormatterCopyright © 2015 JBoss by Red Hat. All rights reserved.