Plug v1.8.1 Plug.Logger View Source

A plug for logging basic request information in the format:

GET /index.html
Sent 200 in 572ms

To use it, just plug it into the desired module.

plug Plug.Logger, log: :debug

Options

  • :log - The log level at which this plug should log its request info. Default is :info.

Link to this section Summary

Functions

Callback implementation for Plug.call/2

Callback implementation for Plug.init/1

Link to this section Functions

Callback implementation for Plug.call/2.

Callback implementation for Plug.init/1.