Java Logging 學習

來源:互聯網
上載者:User

 

    流程圖

    圖示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項目的比較,並提出的今後日誌架構的選型會是Log4J與LogBack的協同

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

Log4J完整的文檔是需要收費的而logback是免費所有文檔

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.