|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.logging.Formatter
java.util.logging.XMLFormatter
public class XMLFormatter
An XMLFormatter formats LogRecords into
a standard XML format.
| Constructor Summary | |
|---|---|
XMLFormatter()
Constructs a new XMLFormatter. |
|
| Method Summary | |
|---|---|
String |
format(LogRecord record)
Formats a LogRecord into a string. |
String |
getHead(Handler h)
Returns a string that handlers are supposed to emit before the first log record. |
String |
getTail(Handler h)
Returns a string that handlers are supposed to emit after the last log record. |
| Methods inherited from class java.util.logging.Formatter |
|---|
formatMessage |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XMLFormatter()
| Method Detail |
|---|
public String format(LogRecord record)
Formatter
format in class Formatterrecord - the log record for which a string form is requested.public String getHead(Handler h)
XMLFormatter
override this method in order to provide a suitable header.
getHead in class Formatterh - the handler which will prepend the returned
string in front of the first log record. This method
will inspect certain properties of the handler, for
example its encoding, in order to construct the header.
public String getTail(Handler h)
FormatterXMLFormatter
override this method in order to provide a suitable tail.
getTail in class Formatterh - the handler which will append the returned
string after the last log record. This method
may inspect certain properties of the handler
in order to construct the tail.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||