ZK 3.7 originally was released with log4j 1.2 (ZK 3.7.0). When ZK
3.7.1 was released, it used reload4j instead of log4j 1.2, because
that was the drop-in replacement for log4j 1.2.

More work was done on ZK 3.8 to use slf4j, with logback as the default
backend. If you want to use log4j 2, it will be easiest to update to
ZooKeeper 3.8 first. Getting log4j 2 to work with ZK 3.7 may be
possible, but probably not without a lot of extra work... work that
was already done upstream in ZK 3.8. So, it's probably best to just
update ZK, then swap out logback with log4j 2.


On Fri, May 26, 2023 at 11:54 AM jitesh chavan <jiteshpcha...@gmail.com> wrote:
>
> Hello Team,
>
> We are using Zookeeper version 3.7. Kindly confirm whether this version
> support log4J 2.17.
> We tried coupling Log4J 2.X but it failed. Log4J 1.2 is working fine.
>
> Please advise, thanks !
>
> Thank you,
> Jitesh P. CHavan

Reply via email to