View Source Logster.ChangeConfig (Logster v2.0.0-rc.4)
A plug used to change the logging configuration of Logster. Useful for changing the log level for a specific controller or action.
To change the configuration for a specific controller, add the following in the controller:
plug Logster.ChangeConfig, status_2xx_level: :debug, status_4xx_level: :info
To specify it only for a specific action, add the following:
plug Logster.ChangeConfig, [status_2xx_level: :debug] when action in [:index, :show]
Summary
Functions
@spec call(Plug.Conn.t(), Keyword.t()) :: Plug.Conn.t()