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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access