View Source Logster.Plugs.ChangeLogLevel (Logster v1.1.1)

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.Plugs.ChangeLogLevel, to: :debug

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

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

Link to this section Summary

Link to this section Functions