[slf4j-user] commons-logging Log4JLogger in slf4j

Vitalii Diravka vitalii at apache.org
Fri Sep 7 14:59:29 CEST 2018


Thank you Ceki for your response.

But this is not an answer. I have already seen the doc. There are nothing
about this issue!
The version of commons-logging is - 1.1.3, but Log4JLogger is present in
1.1.1 library too.
Log4JLogger is just an implementation of Log interface. Not sure why it is
missing in jcl-over-slf4j library.

I have created the Jira ticket for it:
https://jira.qos.ch/browse/SLF4J-443


On 06.09.2018 22:20, Ceki wrote:
> Hi Vitalii,
>
> Please see the docs on jcl-over-slf4j.jar available at
>
>  https://www.slf4j.org/legacy.html#jclOverSLF4J
>
> Best regards,
> --
> Ceki



On Thu, Sep 6, 2018 at 10:29 PM Vitalii Diravka <vitalii at apache.org> wrote:

> Hi all!
>
> I working on updating hadoop libraries in Apache Drill project.
> hadoop-hdfs uses commons-logging library, but Drill uses jcl-over-slf4j
> and bans commons-logging.
>
> I faced the following issue:
> java.lang.NoClassDefFoundError:
> org/apache/commons/logging/impl/Log4JLogger [1]
> I even didn't find this class with the same path in any slf4j library.
>
> Is that possible to solve the issue without enabling commons-logging in
> Drill project? Looks like Log4JLogger class
> in org.apache.commons.logging.impl of jcl-over-slf4j [2] could resolve
> it. Should it be there? But then it will be the question to the dev list.
>
> [1]
> https://github.com/apache/hadoop/blob/trunk/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/common/MetricsLoggerTask.java#L152
> [2]
> https://github.com/qos-ch/slf4j/tree/master/jcl-over-slf4j/src/main/java/org/apache/commons/logging/impl
>
> Thanks
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.qos.ch/pipermail/slf4j-user/attachments/20180907/b8fb0d6a/attachment.html>


More information about the slf4j-user mailing list