java.util.logging
public class XMLFormatter extends Formatter
XMLFormatter
formats LogRecords into
a standard XML format.
Constructor Summary | |
---|---|
XMLFormatter()
Constructs a new XMLFormatter. |
Method Summary | |
---|---|
String | format(LogRecord record) |
String | getHead(Handler h)
Returns a string that handlers are supposed to emit before
the first log record. |
String | getTail(Handler h) |
Parameters: h the handler which will prepend the returned string in front of the first log record. This method will inspect certain properties of the handler, for example its encoding, in order to construct the header.
Returns: a string for the header.