Sha256: 637533010caf963cf5967893fc7b4af467ad10937a2831b88fc3aa4374d529e8

Contents?: true

Size: 536 Bytes

Versions: 93

Compression:

Stored size: 536 Bytes

Contents

# frozen_string_literal: true

module ActionController
  module Logging
    extend ActiveSupport::Concern

    module ClassMethods
      # 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
      #
      def log_at(level, **options)
        around_action ->(_, action) { logger.log_at(level, &action) }, **options
      end
    end
  end
end

Version data entries

93 entries across 88 versions & 8 rubygems

Version Path
minato_ruby_api_client-0.2.2 vendor/bundle/ruby/3.2.0/gems/actionpack-7.1.3.4/lib/action_controller/metal/logging.rb
actionpack-7.1.5.1 lib/action_controller/metal/logging.rb
actionpack-7.0.8.7 lib/action_controller/metal/logging.rb
actionpack-7.1.5 lib/action_controller/metal/logging.rb
actionpack-7.1.4.2 lib/action_controller/metal/logging.rb
actionpack-7.0.8.6 lib/action_controller/metal/logging.rb
actionpack-6.1.7.10 lib/action_controller/metal/logging.rb
actionpack-6.1.7.9 lib/action_controller/metal/logging.rb
actionpack-7.1.4.1 lib/action_controller/metal/logging.rb
actionpack-7.0.8.5 lib/action_controller/metal/logging.rb
actionpack-7.1.4 lib/action_controller/metal/logging.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/actionpack-7.0.8.4/lib/action_controller/metal/logging.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/actionpack-7.1.3.4/lib/action_controller/metal/logging.rb
cm-admin-1.5.22 vendor/bundle/ruby/3.3.0/gems/actionpack-7.0.5.1/lib/action_controller/metal/logging.rb
cm-admin-1.5.21 vendor/bundle/ruby/3.3.0/gems/actionpack-7.0.5.1/lib/action_controller/metal/logging.rb
cm-admin-1.5.20 vendor/bundle/ruby/3.3.0/gems/actionpack-7.0.5.1/lib/action_controller/metal/logging.rb
tinymce-rails-7.1.2 vendor/bundle/ruby/3.3.0/gems/actionpack-7.1.3.4/lib/action_controller/metal/logging.rb
actionpack-7.1.3.4 lib/action_controller/metal/logging.rb
actionpack-7.0.8.4 lib/action_controller/metal/logging.rb
actionpack-6.1.7.8 lib/action_controller/metal/logging.rb