View Source Logster.ChangeLogLevel (Logster v2.0.0-rc.4)

DEPRECATED: Use Logster.ChangeConfig instead.

A plug for changing the log level used by Logster. Useful for increasing/decreasing the log level on a per controller or action basis

To change the log level for a specific controller, add the following in the controller

plug Logster.ChangeLogLevel, to: :debug

To specify it only for a specific action, add the following:

plug Logster.ChangeLogLevel, [to: :debug] when action in [:index, :show]

Summary

Functions

call(conn, log_level)

@spec call(Plug.Conn.t(), atom()) :: Plug.Conn.t()

init(opts)

This function is deprecated. Use `Logster.ChangeConfig` instead.
@spec init(Keyword.t()) :: Keyword.t()