From the course: Transitioning from Java to Kotlin

Unlock the full course today

Join today to access over 24,900 courses taught by industry experts.

Adding status pages

Adding status pages

- [Instructor] Now that our application can receive incoming requests, how can we log what requests are received to monitor and debug our application? Let's explore the CallLogging Plugin, which is designed to handle this exact use case. To add call logging to our application, we'll first need to add the dependency to our build.gradle.kts file. So we will come in here, we will separate out our implementation and test implementation calls, and we will add the dependency needed for the CallLogging Plugin. So, I've pasted it in here. We'll take a look real quick. That dependency artifact is io.ktor:ktor-server-call-logging, and then we use our $ktor_version placeholder to make sure that the versions are aligned with all of our other dependencies. Once this dependency is added, we will resync our build so that Gradle can pull in any of those needed dependency artifacts. Once the dependency has been added and synced,…

Contents