Plug.Logger

Plug.Logger

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.

Summary

Functions

call(conn, level)

Callback implementation for Plug.call/2

init(opts)

Callback implementation for Plug.init/1

Functions

call(conn, level)

Callback implementation for Plug.call/2.

init(opts)

Callback implementation for Plug.init/1.

© 2013 Plataformatec
Licensed under the Apache License, Version 2.0.
https://hexdocs.pm/plug/1.3.0/Plug.Logger.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部