Logging frameworks

As mentioned, there are several logging frameworks you can encounter. The most famous, and the ones you have probably already heard about, are:

  • Log4j1: The historical standard de facto, slowly replaced by log4j2.
  • Log4j2: Probably one of the most advanced implementations today. Supports asynchronous loggers and has a ring buffer integration.
  • Logback: The native SLF4J implementation. It was probably the best choice before log4j2 was done.
  • Java Util Logging: The JVM standard logging API. Not the most evolved API, but it works and doesn't require any dependency, though, you may need some custom integrations (handlers) for production. Check out your server which can already provide some solutions here.

Each of these share ...

Get Java EE 8 High Performance now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.