If you see, we use slf4j logging facade.

log4j != slf4j

slf4j is an interface, log4j / logback are implementations.