[slf4j-user] slf4j-logs has no replacement for org.apache.log4j.jmx.HierarchyDynamicMBean

Stevo Slavić sslavic at gmail.com
Fri Mar 4 22:08:07 UTC 2016


Yes, I meant log4j-over-slf4j. Thanks for heads up!

On Fri, Mar 4, 2016 at 6:15 PM, Ceki Gulcu <ceki at qos.ch> wrote:

>
>
> On 3/4/2016 17:26, Stevo Slavić wrote:
>
>> Hello slf4j community,
>>
>> In Kafka 0.9.0.1 binary distribution I tried to replace log4j with
>> slf4j-log4j bridge and logback. I thought slf4j-log4j bridge is drop in
>> replacement for everything in log4j - seems I was wrong.
>>
>
> 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]
> which is only a partial replacement for log4j.
>
> Starting Kafka
>
>> works fine. Starting ZooKeeper using Kafka's shell scripts doesn't work
>> - ZooKeeper startup throws:
>>
>> java.lang.NoClassDefFoundError: org/apache/log4j/jmx/HierarchyDynamicMBean
>>
>> It seems slf4j-log4j bridge doesn't have
>> org.apache.log4j.jmx.HierarchyDynamicMBean replacement. Or am I doing
>> something wrong?
>>
>
> No, log4j-over-slf4j does not emulate classes in org.apache.log4j.jmx
> package.
>
> Kind regards,
>> Stevo Slavic.
>>
>
>
> [1] http://slf4j.org/legacy.html#log4j-over-slf4j
> _______________________________________________
> slf4j-user mailing list
> slf4j-user at qos.ch
> http://mailman.qos.ch/mailman/listinfo/slf4j-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.qos.ch/pipermail/slf4j-user/attachments/20160304/9071bfb3/attachment.html>


More information about the slf4j-user mailing list