public class XMLFormatter extends Formatter
DTD规范提供为附录A的java日志API规范。
XMLFormatter可以用任意字符编码,但建议一般使用UTF-8。字符编码可以设置在输出汉德勒。
Constructor and Description |
---|
XMLFormatter() |
public String format(LogRecord record)
这种方法可以在子类中重写。这是推荐使用的方法Formatter.formatMessage(java.util.logging.LogRecord)
方便定位和格式的报文字段。
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.