tesla v0.10.0 Tesla.Middleware.Logger View Source
Log requests as single line.
Logs request method, url, response status and time taken in milliseconds.
Example usage
defmodule MyClient do
use Tesla
plug Tesla.Middleware.Logger
end
Logger output
2017-09-30 13:39:06.663 [info] GET http://example.com -> 200 (736.988 ms)
See Tesla.Middleware.DebugLogger
to log request/response body
Link to this section Summary
Functions
Callback implementation for Tesla.Middleware.call/3
Link to this section Functions
Callback implementation for Tesla.Middleware.call/3
.