KIP-1064 — Upgrade slf4j to 2.x
Discussion Broker
Upgrades Kafka's logging interface from SLF4J 1.7 to SLF4J 2.0 and updates the default log4j2 binding to log4j-slf4j2-impl, enabling the -Dslf4j.provider JVM property for logging backend selection. SLF4J 1.x required classpath ordering tricks or manual JAR removal to select a logging backend, and Kafka's dependency on it prevented users from easily switching to modern logging implementations.
Details
| Author | Muralidhar Basani |
| Status | Discussion |
| JIRA | KAFKA-16936 |
| Wiki | View on Apache Wiki |
| Created | 2024-06-27 |
| Last Modified | 2025-04-10 |
Explore how this KIP affects the Kafka protocol in the Protocol Explorer, or see the full KIP database.