1 *java.util.logging.XMLFormatter* *XMLFormatter* Format a LogRecord into a standa
3 public class XMLFormatter
4 extends |java.util.logging.Formatter|
6 |java.util.logging.XMLFormatter_Description|
7 |java.util.logging.XMLFormatter_Fields|
8 |java.util.logging.XMLFormatter_Constructors|
9 |java.util.logging.XMLFormatter_Methods|
11 ================================================================================
13 *java.util.logging.XMLFormatter_Constructors*
14 |java.util.logging.XMLFormatter()|
16 *java.util.logging.XMLFormatter_Methods*
17 |java.util.logging.XMLFormatter.format(LogRecord)|Format the given message to X
18 |java.util.logging.XMLFormatter.getHead(Handler)|Return the header string for a
19 |java.util.logging.XMLFormatter.getTail(Handler)|Return the tail string for a s
21 *java.util.logging.XMLFormatter_Description*
23 Format a LogRecord into a standard XML format.
25 The DTD specification is provided as Appendix A to the Java Logging APIs
28 The XMLFormatter can be used with arbitrary character encodings, but it is
29 recommended that it normally be used with UTF-8. The character encoding can be
30 set on the output Handler.
33 *java.util.logging.XMLFormatter()*
40 *java.util.logging.XMLFormatter.format(LogRecord)*
42 public |java.lang.String| format(java.util.logging.LogRecord record)
44 Format the given message to XML.
46 record - the log record to be formatted.
48 Returns: a formatted log record
49 *java.util.logging.XMLFormatter.getHead(Handler)*
51 public |java.lang.String| getHead(java.util.logging.Handler h)
53 Return the header string for a set of XML formatted records.
55 h - The target handler (can be null)
57 Returns: a valid XML string
58 *java.util.logging.XMLFormatter.getTail(Handler)*
60 public |java.lang.String| getTail(java.util.logging.Handler h)
62 Return the tail string for a set of XML formatted records.
64 h - The target handler (can be null)
66 Returns: a valid XML string