public class XMLFormatter extends Formatter
DTD规范作为Java Logging API规范的附录A提供。
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.