4 ms·
Not a good example, as the de-facto logging interface for Java was SLF4J. Though I myself prefer Log4J2, as I'm already using Log4J2 as the concrete logging im
by dikei 2y ago
Not a good example, as the de-facto logging interface for Java was SLF4J.
Though I myself prefer Log4J2, as I'm already using Log4J2 as the concrete logging implementation.
- funcDropShadow 2y agoWhy do you prefer Log4j2 over the slf4j api and why over logback as the backend?
- dikei 2y agoI prefer Log4J2 built-in JSON Template Layout to Logback's various JSON output solution. The API of Log4J2 and SLF4J v2 are similar enough that it does not matter for basic usage, I don't see the benefit of SLF4J in a project that's already using Log4J2.