Java-Logging
davyjones2010
生活在这个世界而不知其义,如同徜徉于一座伟大的图书馆而不碰书籍。
展开
-
Java Logging Techniques Summary(Introduction in Brief)
1. As the time evolves, many logging techniques emerged. 1) java.util.logging (JUL) is provided by SUN along with JDK. 2) org.apache.log4j (Log4j) is provided by ASF. -> Log4j...原创 2013-05-23 11:35:45 · 141 阅读 · 0 评论 -
Java Logging Techniques Summary(JUL in Depth)
1. JUL is an inbeded util tool for logging. 2. The work flow of JUL3. JUL has abstracted Logging procession into the interaction of several Classes. 1) Level --> Define the the sever...原创 2013-05-23 19:11:09 · 184 阅读 · 0 评论 -
Java Logging Techniques Summary(Log4j Example)
1. Three Main Components: 1) Logger 2) Appender 3) Layout These three types of components work together to enable developers to log message according to message type and level, a...2013-05-27 16:47:03 · 155 阅读 · 0 评论 -
Java Logging Techniques Summary(Commons-Logging Example)
1. In last chapter, we introduced Log4j in detail. How can we use commons-logging for the existing project? 1) Add dependency for commons-logging in pom.<dependency> <groupId&g...原创 2013-05-27 19:12:27 · 156 阅读 · 0 评论 -
Java Logging Techniques Summary(SLF4J Introduction)
1. Q: What is SLF4J? A: Simple Logging Facade for Java Q: Why do we use SLF4J instead of Commons-Logging? A: Because JCL is runtime discovery algorithm which relies on classloader hac...原创 2013-05-28 10:14:05 · 199 阅读 · 0 评论 -
Java Logging Techniques Summary(Logback Introduction)
Summary 1) Logback is not an independent implementation of Logging. It depends on SLF4J. 1. Logback configuration work flow 2. A simple example of using Logback 1) pom.xml...原创 2013-05-28 13:22:28 · 101 阅读 · 0 评论