java-client icon indicating copy to clipboard operation
java-client copied to clipboard

Failed to load class "org.slf4j.impl.StaticLoggerBinder"

Open JaniJegoroff opened this issue 2 years ago • 2 comments

Description

I'm running a simple unit tests for launching Appium server from the code with Maven and Gradle. Tests are running fine but I noticed logs related to SLF4J logging library used in the AppiumDriverLocalService:

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".

Maven

<...>
[INFO] -------------------------------------------------------
[INFO]  T E S T S
[INFO] -------------------------------------------------------
[INFO] Running com.test.janijegoroff.junit5.AppiumServerTest
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
<...>

Gradle

<...>
> Task :test

AppiumServerTest STANDARD_ERROR
    SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
    SLF4J: Defaulting to no-operation (NOP) logger implementation
    SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
<...>

Environment

  • Java client build version or git revision if you use some snapshot: latest 8.1.1
  • Appium server version or git revision if you use some snapshot: latest 1.22.3
  • Desktop OS/version used to run Appium if necessary: macOS Monterey 12.5
  • Node.js version (unless using Appium.app|exe) or Appium CLI or Appium.app|exe: 18.7.0
  • Mobile platform/version under test: N/A
  • Real device or emulator/simulator: N/A

Code To Reproduce Issue

See sample project: Appium server launch for Java

JaniJegoroff avatar Aug 05 '22 23:08 JaniJegoroff

@JaniJegoroff please check: https://www.slf4j.org/codes.html#StaticLoggerBinder

valfirst avatar Aug 08 '22 10:08 valfirst

Can we close this issue as this seems to be resolved for now and isn't specific to this library? cc: @JaniJegoroff @SrinivasanTarget @mykola-mokhnach

bipin-k avatar Aug 31 '22 20:08 bipin-k