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
From the course: Transitioning from Java to Kotlin
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
-
-
-
-
-
-
-
(Locked)
Creating a new Ktor project6m 30s
-
(Locked)
Adding your first route5m 33s
-
(Locked)
Testing your local service6m 41s
-
(Locked)
Adding status pages7m 32s
-
(Locked)
Storing a list of products5m 42s
-
(Locked)
Returning typed responses11m 57s
-
(Locked)
Adding new products5m 38s
-
(Locked)
Authenticating routes7m 57s
-
(Locked)
Challenge: Return all active orders1m 35s
-
(Locked)
Solution: Return all active orders7m 4s
-
(Locked)
-