Choosing an implementation

If you can choose your implementation, you should check where you want to send your logs and pick the implementation already doing what you need, or the implementation which has a very close feature. Then, if multiple implementations fit your requirements, you need to check which one is the fastest.

Starting from log4j2 or logback is generally a good choice. Yet, in practice, you rarely have the choice and part of your stack is imposed by your environment (dependencies and containers). Thus, it is highly probable you will need to configure JUL as well. In such a case, a good option is to check if you can reuse your container backbone without being dependent on your container in terms of code (that is, you can use ...

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.