Exposed: SLF4J warning at boot

Created on 20 Jan 2019  Â·  2Comments  Â·  Source: JetBrains/Exposed

Hi, and thanks for this beautiful library

I used the logging configuration from the main readme.md, but I'm getting a warning from SLF4J as follows:

backend ➜ java -jar build/libs/chess-0.0.1.jar 
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.
SQL: SELECT usuario.login, usuario.firstname, usuario.lastname, usuario.description FROM usuario
1: first
2: second
3: third
backend ➜ 

is there any way to fix this?

thanks in advance

Most helpful comment

Yeah I got this issue when I added exposed to a project that was using Flyway. Adding the following to my build.gradle fixed it up for me:

dependencies {
    ...
    compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.25'
    compile group: 'org.slf4j', name: 'slf4j-simple', version: '1.7.25'
}

All 2 comments

Yeah I got this issue when I added exposed to a project that was using Flyway. Adding the following to my build.gradle fixed it up for me:

dependencies {
    ...
    compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.25'
    compile group: 'org.slf4j', name: 'slf4j-simple', version: '1.7.25'
}

interesting, thank you!

Was this page helpful?
0 / 5 - 0 ratings