doorman v0.1.0 Doorman.Plug.FilteringLogger
A plug for logging basic request information in the format with a filtering option:
GET /index.html
Sent 200 in 572ms
To use it, just plug it into the desired module.
plug Plug.Logger, log: :debug, filter: fn(conn)->should_log?(conn)end
Options
:log
- The log level at which this plug should log its request info. Default is:info
.:filter
- if provided and returns falseish, do not log request.
Link to this section Summary
Link to this section Functions
Link to this function
call(conn, opts)
Callback implementation for Plug.call/2
.
Link to this function
init(opts)
Callback implementation for Plug.init/1
.