CrowdHailer / raxx

Interface for HTTP webservers, frameworks and clients
https://hexdocs.pm/raxx
Apache License 2.0
402 stars 29 forks source link

Basic logger middleware #91

Closed CrowdHailer closed 6 years ago

CrowdHailer commented 6 years ago

Spike of logger middleware. Basically a port of the Plug.Logger https://github.com/elixir-plug/plug/blob/master/lib/plug/logger.ex

tackles issue #73

CrowdHailer commented 6 years ago

Should consider making more use of the metadata feature of Logger. Ideally other middleware like Raxx.Router would add information like controller module. (By default metadata includes the module but this will only be the controller for top level code). I think we should also investigate reusing the Logger metadata for attaching contextual information to error reporting.

CrowdHailer commented 6 years ago

closes #73