Java logging Learning

Source: Internet
Author: User

 

    Flowchart

    Figure 1

     

    1. Both logger and handlers may use logging levels and (optionally) filters to decide if they are interested in a participant logrecord.
    2. A handler can (optionally) Use a formatter to localize and format the message before publishing it to an I/O Stream.

    Figure 2

    1. Some handlers may direct output to other handlers.

    Structure

    Java Logging

       

       

    Java Logging Process

     

    References

  1. J2se documentation and logging
  2. Http://blog.sina.com.cn/s/blog_457567880100kffd.html

A year ago, this address talked about the log components in the Java camp and compared log4j, Java
Comparison of logging, logback, slf4j, and Apache common logging projects, and the proposed log framework selection in the future will be the collaboration between log4j and logback.

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

Complete log4j documentation is charged, while logback is free of charge.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.