Hashtag Jakarta EE #103

Welcome to issue number one hundred and three of Hashtag Jakarta EE!

All sessions from JakartaOne Livestream 2021 are now available on the Jakarta EE YouTube Channel.

We thank everyone involved in making JakartaOne Livestream 2021 a success!

The Jakarta EE Platform team will now take a well-earned break over the holidays. The next weekly Platform call will be on January 4, 2022. Make sure to att the Jakarta EE Specifications Calendar to your calendar. The minutes from all these calls are always published on the Jakarta EE Platform Team project pages.

Logging Ad Nauseum

I guess I have to mention logging in one way or the other this week. A lot of good stuff has been written and communicated about this. All I want to say is that you should follow the advice to always use the latest recommended versions of your dependencies. Another piece of advice I will throw in is that you should always consider whether you actually need that particular dependency you just added. Take logging, for example. I have always been happy with Java Util Logging (JUL). It is provided for me by the platform, and provides the functionality I have needed.

package dukes;

import java.util.logging.Logger;

class DukeLogs {

    public static final Logger LOGGER = Logger.getLogger("dukes");

    void doStuff() {
        LOGGER.info(() -> "Duke says hello");
    }

}

This may not be the case for everyone. Log4j provides a lot of useful stuff that you may benefit from in your particular use case. But if you choose to rely on third-party dependencies, always make sure that you follow the recommendations to which version to use (usually the latest)!

See Eclipse and log4j2 vulnerability (CVE-2021-44228) to see the status of the various projects at Eclipse Foundation. Please help keep this list up-to-date for the projects you are involved in!

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.