<div dir="ltr">Yes, I meant log4j-over-slf4j. Thanks for heads up!<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 4, 2016 at 6:15 PM, Ceki Gulcu <span dir="ltr"><<a href="mailto:ceki@qos.ch" target="_blank">ceki@qos.ch</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
<br>
On 3/4/2016 17:26, Stevo Slavić wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello slf4j community,<br>
<br>
In Kafka 0.9.0.1 binary distribution I tried to replace log4j with<br>
slf4j-log4j bridge and logback. I thought slf4j-log4j bridge is drop in<br>
replacement for everything in log4j - seems I was wrong.<br>
</blockquote>
<br></span>
The slf4j-log4j is an adapter module that sends SLF4J calls to log4j. Since you are using logback, you probably mean log4j-over-slf4j [1]<br>
which is only a partial replacement for log4j.<span class=""><br>
<br>
Starting Kafka<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
works fine. Starting ZooKeeper using Kafka's shell scripts doesn't work<br>
- ZooKeeper startup throws:<br>
<br>
java.lang.NoClassDefFoundError: org/apache/log4j/jmx/HierarchyDynamicMBean<br>
<br>
It seems slf4j-log4j bridge doesn't have<br>
org.apache.log4j.jmx.HierarchyDynamicMBean replacement. Or am I doing<br>
something wrong?<br>
</blockquote>
<br></span>
No, log4j-over-slf4j does not emulate classes in org.apache.log4j.jmx package.<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Kind regards,<br>
Stevo Slavic.<br>
</blockquote>
<br>
<br>
[1] <a href="http://slf4j.org/legacy.html#log4j-over-slf4j" rel="noreferrer" target="_blank">http://slf4j.org/legacy.html#log4j-over-slf4j</a><br>
_______________________________________________<br>
slf4j-user mailing list<br>
<a href="mailto:slf4j-user@qos.ch" target="_blank">slf4j-user@qos.ch</a><br>
<a href="http://mailman.qos.ch/mailman/listinfo/slf4j-user" rel="noreferrer" target="_blank">http://mailman.qos.ch/mailman/listinfo/slf4j-user</a></blockquote></div><br></div>