现在的位置: 首页 > 综合 > 正文

Java Logging 学习

2013年08月05日 ⁄ 综合 ⁄ 共 594字 ⁄ 字号 评论关闭

 

    流程图

    图示1

     

    1. Both Logger and Handlers may use logging Levels and (optionally) Filters to decide if they are interested in a particular LogRecord.
    2. A Handler can (optionally) use a Formatter to localize and format the message before publishing it to an I/O stream.

    图示2

    1. Some Handlers may direct output to other Handlers.

    结构

    Java logging

       

       

    Java Logging流程

     

    参考资料

  1. J2SE文档与Logging相关内容
  2. http://blog.sina.com.cn/s/blog_457567880100kffd.html

一年前这个地址讲述了当时Java阵营下的Log组件,并比较了log4j,java
logging,logback,slf4j,Apache Common logging
项目的比较,并提出的今后日志框架的选型会是Log4JLogBack的协同

  1. http://wenku.baidu.com/view/e65323c42cc58bd63186bd3e.html
  2. http://logback.qos.ch/

Log4J完整的文档是需要收费的而logback是免费所有文档

抱歉!评论已关闭.