| java.lang.Object | ||
| ↳ | java.util.logging.Formatter | |
| ↳ | java.util.logging.XMLFormatter | |
Formatter to convert a LogRecord into an XML string. The DTD
specified in Appendix A to the Java Logging APIs specification is used.
XMLFormatter uses the output handler's encoding if it is specified,
otherwise the default platform encoding is used instead. UTF-8 is the
recommended encoding.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a new
XMLFormatter.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Converts a
LogRecord into an XML string.
| |||||||||||
Returns the header string for a set of log records formatted as XML
strings, using the output handler's encoding if it is defined, otherwise
using the default platform encoding.
| |||||||||||
Returns the tail string for a set of log records formatted as XML
strings.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.util.logging.Formatter
| |||||||||||
From class
java.lang.Object
| |||||||||||
Converts a LogRecord into an XML string.
| r | the log record to be formatted. |
|---|
Returns the header string for a set of log records formatted as XML strings, using the output handler's encoding if it is defined, otherwise using the default platform encoding.
| h | the output handler, may be null. |
|---|
Returns the tail string for a set of log records formatted as XML strings.
| h | the output handler, may be null. |
|---|