Flowchart
Figure 1
- Both logger and handlers may use logging levels and (optionally) filters to decide if they are interested in a participant logrecord.
- A handler can (optionally) Use a formatter to localize and format the message before publishing it to an I/O Stream.
|
Figure 2
- Some handlers may direct output to other handlers.
|
Structure
Java Logging
Java Logging Process
References
- J2se documentation and logging
- 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.
- Http://wenku.baidu.com/view/e65323c42cc58bd63186bd3e.html
- Http://logback.qos.ch/
Complete log4j documentation is charged, while logback is free of charge.