https://kotlinlang.org logo
Title
q

quiqua

07/06/2018, 12:11 PM
Any recommendations how to integrate
kotlin-logging
with
ktor
? 😮
o

oshai

07/06/2018, 12:36 PM
What kind of integration?
q

quiqua

07/06/2018, 12:44 PM
like set the logging provider to
kotlin-logging
as mentioned here: https://ktor.io/servers/logging.html#providers
or is there only the option to use logback atm?
o

oshai

07/06/2018, 1:25 PM
kotlin-logging is a frontend or a wrapper for slf4j. It means you can configure slf4j as explained in the link. Add kotlin-logging dependency and use its api. That should work.
n

napperley

07/07/2018, 1:10 AM
Slf4j should be sufficient for logging. Logback ends up being overkill, and its XML based configuration is a major step backwards.
o

oshai

07/07/2018, 5:33 PM
Slf4j is a facade. You still need also logback or log4j when using it.
n

napperley

07/07/2018, 11:22 PM
Forgot about Slf4j being a logging facade. Meant referring to Log4j instead.
k

Krs

07/09/2018, 4:35 AM
Logback + SLF4J is the way to go...
👍 4
d

Dominik

07/15/2018, 3:04 PM
I would strongly suggest injecting a slf4j logger with your DI framework.