Phoenix.Controller.Logger

Plug to handle request logging at the controller level.

Parameter filtering

When logging parameters, Phoenix can filter out sensitive parameters in the logs, such as passwords, tokens and what not. Parameters to be filtered can be added via the :filter_parameters option:

config :phoenix, :filter_parameters, ["password", "secret"]

With the configuration above, Phoenix will filter any parameter that contains the terms password or secret. The match is case sensitive.

Phoenix’s default is ["password"].

Source

Summary

call(conn, level)

Callback implementation of Plug.call/2

init(opts)

Callback implementation of Plug.init/1

Functions

call(conn, level)

Callback implementation of Plug.call/2.

Source
init(opts)

Callback implementation of Plug.init/1.

Source