JDK 1.4 Logging API


Performance and scalability: JDK 1.4 Logging API

  1. JDK 1.4 Logging API (2 messages)

    I have heard in numerous places that you cannot use the JDK 1.4 logging API with previouse releases of Java.

    I have two questions:

    1. Is this true?

    2. If so why? Does it use New I/O APIs? Assertions? Does Sun just want everyone to migrate ASAP?

    Thanks in advanced for you comments.

    Threaded Messages (2)

  2. JDK 1.4 Logging API[ Go to top ]

    Yes, it is true. You can't use the new logging API with previous releases of Java, since normal Java-programs are not allowed to add packages in "java"-namespace.

    You probably could take the sources, rename the packages to something else, and then use it, but there is a better alternative: just use Log4j, which is free and has all features you will ever need from your logging library.
  3. JDK 1.4 Logging API[ Go to top ]

    Better yet, use Log4J and the Jakarta Commons Logging API. This allows you to use the same API for both Log4J and java.util.logging