https://kotlinlang.org logo
#ktor
Title
# ktor
s

spierce7

05/03/2021, 4:19 PM
For Ktor Server - If I wanted to log the request for any server error in ktor, what would be the best way to do that?
c

cy

05/03/2021, 5:09 PM
Can't you intercept all requests and surround the proceed invocation in try/catch? See StatusPages implementation for example
Or may be you can use the feature itself for that purpose
s

spierce7

05/03/2021, 7:08 PM
which feature should I use to
surround the proceed invocation in try/catch
?
@cy?