https://kotlinlang.org logo
Title
a

Anamika Trivedi

12/09/2021, 5:49 PM
Can anyone recommend any logging library that can be used to log info inside Ktor code?
c

Casey Brooks

12/09/2021, 6:37 PM
ktor has generic logging plugins for both servers and clients, and you can configure the logging callback and pass messages directly into any logging library, such as Kermit which just released 1.0.0 today https://kotlinlang.slack.com/archives/C0BJ0GTE2/p1639073685336600
🎉 1
k

kpgalligan

12/09/2021, 6:51 PM
Good timing. Also looking for thoughts on reasonable extensions, so maybe a ktor one (but have to see if that's worth it vs just good examples)
a

Anamika Trivedi

12/10/2021, 2:11 PM
This library works before ktor api request code, but after ktor request is made, it does not work, does not print logs, and even debugging breakpoints are also not working after that point, only works before the written request code only.