public class XMLFormatter extends Formatter
XMLFormatter formats LogRecords into
a standard XML format.| Constructor and Description |
|---|
XMLFormatter()
Constructs a new XMLFormatter.
|
| Modifier and Type | Method and Description |
|---|---|
String |
format(LogRecord record)
Formats a LogRecord into a string.
|
String |
getHead(Handler h)
Returns a string that handlers are supposed to emit before
the first log record.
|
String |
getTail(Handler h)
Returns a string that handlers are supposed to emit after
the last log record.
|
formatMessagepublic XMLFormatter()
public String format(LogRecord record)
Formatterpublic String getHead(Handler h)
XMLFormatter
override this method in order to provide a suitable header.public String getTail(Handler h)
FormatterXMLFormatter
override this method in order to provide a suitable tail.