is there a way to make ktor log request bodies?
# ktor
c
is there a way to make ktor log request bodies?
e
Hi @Czar, client or server?
c
Client
e
level = BODY
in the
Logging
feature should work with
1.3.2
c
I have level ALL, it doesn't work
e
Could you file an issue with example? I'll take a look
c
sure will do
log:
Copy code
[main] INFO io.ktor.client.HttpClient - REQUEST: <http://localhost:8080/>
[main] INFO io.ktor.client.HttpClient - METHOD: HttpMethod(value=POST)
[main] INFO io.ktor.client.HttpClient - COMMON HEADERS
[main] INFO io.ktor.client.HttpClient - -> Accept-Charset: UTF-8
[main] INFO io.ktor.client.HttpClient - -> Accept: */*
[main] INFO io.ktor.client.HttpClient - CONTENT HEADERS
[main] INFO io.ktor.client.HttpClient - BODY Content-Type: text/plain; charset=UTF-8
[main] INFO io.ktor.client.HttpClient - RESPONSE: 200 
-- response stuff skipped for brevity --
And this is the bug report: https://github.com/ktorio/ktor/issues/1729
218 Views