Java logging framework: Difference between revisions

Content deleted Content added
No edit summary
Line 57:
{| border=1
| ''Feature''
| ''[[Log4J]]''
| ''Java Logging API''
| ''Jakarta Commons Logging''
Line 85:
==Summary==
{{POV-section|date=December 2007}}
Of the major players, [[log4j]] is still the front runner in the [[Java]] [[Logging]] ___domain. The log4j project has been around for a long time and has lots of support from the development community. It's simple to implement, yet has powerful tools built in to accomplish most logging tasks. It is also easily extensible to handle proprietary needs.
 
The newer logging API, which has been included in the JRE since 1.4, incorporates many of the same concepts as log4j. It has loggers and appenders. However, log4j has been much more broadly used and there are many out-of-the-box solutions in log4j that are lacking in the Java Logging API.{{Fact|date=November 2007}}
 
The Jakarta Commons Logging isn't really a logging framework, but a logging framework wrapper. As such, it requires a logging framework underneath it. It would be useful in an heterogeneous environment where the logging framework is likely to change. However, in most cases, once a suitable logging framework has been chosen, there is little need to change it over the life of the project.
 
[[SLF4J]] and [[Logback]], both originally written by the same original writer of [[log4j]], are growing potential replacements in particular for log4j and Jakarta Commons Logging.
 
==Links to Java Logging Projects==
Line 95 ⟶ 97:
* [http://java.sun.com/javase/6/docs/technotes/guides/logging/overview.html Java 6.0 Logging API (presently same document as 1.4 above, but with Java 6 links)]
* [http://jakarta.apache.org/commons/logging/ Commons Logging]
* [[SLF4J]]
* [[Log4j]]
* [http://protomatter.sourceforge.net Protomatter]