<div dir="ltr">Hi,<div><br></div><div>I wonder if there is a possibility to make servant-client or the layer below, i.e. http-client log all requests and corresponding responses into a log file.</div><div><br></div><div>There is `<a id="inbox-inbox-v:managerModifyRequest" class="inbox-inbox-def" style="color:rgb(0,0,0);font-size:13px;margin:0px;padding:0px;font-weight:bold;font-family:monospace">managerModifyRequest</a><span style="font-size:13px;font-family:monospace;background-color:rgb(240,240,240)"><span class="inbox-inbox-Apple-converted-space"> </span>::<span class="inbox-inbox-Apple-converted-space"> </span></span><a href="https://hackage.haskell.org/package/http-client-0.5.4/docs/Network-HTTP-Client.html#t:ManagerSettings" style="font-size:13px;margin:0px;padding:0px;text-decoration:none;color:rgb(171,105,84);font-family:monospace">ManagerSettings</a><span style="font-size:13px;font-family:monospace;background-color:rgb(240,240,240)"><span class="inbox-inbox-Apple-converted-space"> </span>-><span class="inbox-inbox-Apple-converted-space"> </span></span><a href="https://hackage.haskell.org/package/http-client-0.5.4/docs/Network-HTTP-Client.html#t:Request" style="font-size:13px;margin:0px;padding:0px;text-decoration:none;color:rgb(171,105,84);font-family:monospace">Request</a><span style="font-size:13px;font-family:monospace;background-color:rgb(240,240,240)"><span class="inbox-inbox-Apple-converted-space"> </span>-><span class="inbox-inbox-Apple-converted-space"> </span></span><a href="https://hackage.haskell.org/package/base-4.9.0.0/docs/System-IO.html#t:IO" style="font-size:13px;margin:0px;padding:0px;text-decoration:none;color:rgb(171,105,84);font-family:monospace">IO</a><span style="font-size:13px;font-family:monospace;background-color:rgb(240,240,240)"><span class="inbox-inbox-Apple-converted-space"> </span></span><a href="https://hackage.haskell.org/package/http-client-0.5.4/docs/Network-HTTP-Client.html#t:Request" style="font-size:13px;margin:0px;padding:0px;text-decoration:none;color:rgb(171,105,84);font-family:monospace">Request</a>` (<a href="https://github.com/snoyberg/http-client/blob/master/http-client/Network/HTTP/Client/Types.hs#L672">https://github.com/snoyberg/http-client/blob/master/http-client/Network/HTTP/Client/Types.hs#L672</a>) which would allow to build logging for requests I suppose. </div><div><br></div><div>However I could neither find a corresponding hook for Response, nor a "batteries included"TM `logRequests = True`, `requestLogger=...` or something along those lines.</div><div><br></div><div>Best</div><div>Jan</div></div>