aspose file tools
The moose likes Other Open Source Projects and the fly likes Log4j v. Java 1.4? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Reply Bookmark "Log4j v. Java 1.4?" Watch "Log4j v. Java 1.4?" New topic
Author

Log4j v. Java 1.4?

Siegfried Heintze
Ranch Hand

Joined: Aug 11, 2000
Posts: 333
What is the difference between log4j, jakarta logging and the logging feature implemented as part of Java 1.4?

Thanks,
Siegfried
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 32769
log4j and the java.util.logging package are actual implementations of logging, while Commons Logging merely puts a common API on top of actual logging implementations. If you code against Commons Logging, you can swap out, e.g., the Java logging package for log4j later w/o having to adapt your code. There may be other logging libraries it supports.


Android appsImageJ pluginsJava web charts
Stuart Ash
Ranch Hand

Joined: Oct 07, 2005
Posts: 637
Commons Logging is like JDBC, it's a set of interfaces.

Log4J and JDK1.4 Logging are essentially implementations which can then be wrapped by Commons Logging.


ASCII silly question, Get a silly ANSI.
 
 
subject: Log4j v. Java 1.4?
 
Threads others viewed
log4j vs system.out.Println()
This weeks giveaway
what is the biggest 3 Jakarta Projects out there?
debugging a servlet
log4J and java.util.logging
developer file tools