| java.lang.Object java.util.logging.Formatter java.util.logging.XMLFormatter
XMLFormatter | public class XMLFormatter extends Formatter (Code) | | 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.
|
XMLFormatter | public XMLFormatter()(Code) | | Default constructor
|
format | public String format(LogRecord r)(Code) | | Format a LogRecord into string which represents XML.
Parameters: r - the given LogRecord instance to be formatted string which represents XML |
getHead | public String getHead(Handler h)(Code) | | Return the header string for XML, use given handler's encoding if has,
otherwise use default platform encoding
Parameters: h - the given handler the header string for XML |
getTail | public String getTail(Handler h)(Code) | | Return the tail string for XML
Parameters: h - the given handler the tail string for XML |
|
|