java.util.logging
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.
|
formatMessage
public XMLFormatter()
public String format(LogRecord record)
Formatter
public String getHead(Handler h)
XMLFormatter
override this method in order to provide a suitable header.public String getTail(Handler h)
Formatter
XMLFormatter
override this method in order to provide a suitable tail.