[slf4j-user] commons-logging Log4JLogger in slf4j

Ceki ceki at qos.ch
Thu Sep 6 22:20:27 CEST 2018


Hi Vitalii,

Please see the docs on jcl-over-slf4j.jar available at

   https://www.slf4j.org/legacy.html#jclOverSLF4J

Best regards,
--
Ceki

On 06.09.2018 21:29, Vitalii Diravka 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
> 


More information about the slf4j-user mailing list