Methods
- L
Instance Public methods
log_at(level, **options) Link
Set a different log level per request.
# Use the debug log level if a particular cookie is set.
class ApplicationController < ActionController::Base
log_at :debug, if: -> { cookies[:debug] }
end