I am trying to enable debug logging with Ktor but ...
# ktor
a
I am trying to enable debug logging with Ktor but witout success. It stays on info:
Copy code
embeddedServer(Netty, 8080) {
        install(CallLogging) {
            level = Level.DEBUG
        }
        routing {
            get("/") {
                println(log.isDebugEnabled)
            }
       }
}.start(wait = true)
log.isDebugEnabled is always returning
false
. Should
install
be invoked somewhere else? can't really find this in the documentation
d
one thing is the CallLogging and other the Logger
have you configured logback? Have you used the plugin or the start website to create a project, or just created one from scratch?
a
Created from scratch and I use slf4j-simple
d
try generating a zip file here
and check if it works for you
if it does, you can check differences with your code
a
ok thanks I will try it
­čĹŹ 1