JavaTM Platform
Standard Ed. 6

java.util.logging
类 SimpleFormatter

java.lang.Object
  继承者 java.util.logging.Formatter
      继承者 java.util.logging.SimpleFormatter

public class SimpleFormatter
     
extends Formatter

以可读格式输出 LogRecord 的简单摘要。摘要通常为 1 或 2 行。

从以下版本开始:
1.4

构造方法摘要
SimpleFormatter()
           
 
方法摘要
 String format(LogRecord record)
          格式化给定的 LogRecord。
 
从类 java.util.logging.Formatter 继承的方法
formatMessage, getHead, getTail
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

SimpleFormatter

public SimpleFormatter()
方法详细信息

format

public String format(LogRecord record)
格式化给定的 LogRecord。

指定者:
Formatter 中的 format
参数:
record - 要格式化的日志记录。
返回:
格式化的日志记录

JavaTM Platform
Standard Ed. 6

提交错误或意见
有关更多的 API 参考资料和开发人员文档,请参阅 Java SE 开发人员文档。该文档包含更详细的、面向开发人员的描述,以及总体概述、术语定义、使用技巧和工作代码示例。

版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策