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.
34 *java.util.logging.XMLFormatter()*
41 *java.util.logging.XMLFormatter.format(LogRecord)*
43 public |java.lang.String| format(java.util.logging.LogRecord record)
45 Format the given message to XML.
48 record - the log record to be formatted.
50 Returns: a formatted log record
52 *java.util.logging.XMLFormatter.getHead(Handler)*
54 public |java.lang.String| getHead(java.util.logging.Handler h)
56 Return the header string for a set of XML formatted records.
59 h - The target handler (can be null)
61 Returns: a valid XML string
63 *java.util.logging.XMLFormatter.getTail(Handler)*
65 public |java.lang.String| getTail(java.util.logging.Handler h)
67 Return the tail string for a set of XML formatted records.
70 h - The target handler (can be null)
72 Returns: a valid XML string