java.util.logging.XMLFormatter
Format a given LogRecord
into string represents XML. The DTD specified in
Appendix A to Java Logging APIs specification is used.
XMLFormatter
uses given Handler
's encoding if has, otherwise
uses default platform encoding instead. However, the UTF-8 is recommended encoding.
Summary
Public Constructors
Public Methods
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
Details
Public Constructors
public
XMLFormatter()
Default constructor
Public Methods
Format a
LogRecord
into string which represents XML
Parameters
r
| the given LogRecord instance to be formatted |
Returns
- string which represents XML
Return the header string for XML, use given handler's encoding if has,
other wise use default platform encoding
Returns
- the header string for XML
Return the tail string for XML