public class XmlFormatter extends StructuredFormatter
source class namesource file namesource method namesource line numberStructuredFormatter.Generator, StructuredFormatter.KeyDEFAULT_DATE_FORMAT| Constructor and Description |
|---|
XmlFormatter()
Creates a new XML formatter
|
XmlFormatter(Map<StructuredFormatter.Key,String> keyOverrides)
Creates a new XML 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 XmlFormatter()
public XmlFormatter(Map<StructuredFormatter.Key,String> keyOverrides)
keyOverrides - a map of the default keys to overridepublic 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) throws Exception
StructuredFormattercreateGenerator in class StructuredFormatterException - if an error occurs creating the generatorCopyright © 2015 JBoss by Red Hat. All rights reserved.