After upgrading from ktor 2.2.2 to 2.3.2, on Deskt...
# ktor
d
After upgrading from ktor 2.2.2 to 2.3.2, on Desktop/JVM I am seeing this error message on the IntelliJ console:
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
I verified several times, that with 2.2.2 it doesn't show up Is it a known issue? UPDATE: I verified that the message is first showing with version 2.2.3 and all following versions.
a
Ktor relies on the SLF4J. This message means that there are no logger implementation classes on the classpath so NOP implementation is used.
d
it doesn't feel right to see this warning. Is there any way to remove it?
e
try adding this to the JVM dependencies
Copy code
implementation("ch.qos.logback:logback-classic:1.2.11")
d
@Emre I added it to the DesktopMain section of the shared gradle file, and the warning was removed! many thanks!!! By the way, there is much more recent version available:
Copy code
implementation("ch.qos.logback:logback-classic:1.4.7")
https://mvnrepository.com/artifact/ch.qos.logback/logback-classic
👍 2