Checkout our demo site to practice selenium https://magento.softwaretestingboard.com/

0 like 0 dislike
380 views
by Contributing Tester (92 points)

I am facing below warning when I trigger execution, however it does not impact execution at all but Red warning doesn't look good:

SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/D:/Projects/QA%20Automation/Local%20Repository/org/apache/logging/log4j/log4j-slf4j-impl/2.6.2/log4j-slf4j-impl-2.6.2.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/D:/Projects/QA%20Automation/Local%20Repository/org/slf4j/slf4j-nop/1.5.3/slf4j-nop-1.5.3.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/D:/Projects/QA%20Automation/Local%20Repository/org/slf4j/slf4j-jdk14/1.5.6/slf4j-jdk14-1.5.6.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/D:/Projects/QA%20Automation/Local%20Repository/org/slf4j/slf4j-simple/1.6.6/slf4j-simple-1.6.6.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory]
ERROR StatusLogger Log4j2 could not find a logging implementation. Please add log4j-core to the classpath. Using SimpleLogger to log to the console...

1 Answer

0 like 0 dislike
by The go-to Tester (181 points)
selected by
 
Best answer

If you are using maven you can use

<exclusion> 
        <groupId>org.slf4j</groupId>
        <artifactId>slf4j-log4j12</artifactId>
</exclusion>

If you are using Gradle,

configurations.all {
 
exclude module: 'slf4j-log4j12'
 
}
 

Hope that helps.

by Contributing Tester (92 points)
Still getting this error


This site is for software testing professionals, where you can ask all your questions and get answers from 1300+ masters of the profession. Click here to submit yours now!

...