Sha256: 0b4a1061be490dc741a75872e88c2db7a9c378247580b5c66e7448312b117c25

Contents?: true

Size: 476 Bytes

Versions: 8

Compression:

Stored size: 476 Bytes

Contents

Rails::Rack::Logger

# Drop rack Started message to debug level message
module Rails
  module Rack
    class Logger
      private

      module LogInfoAsDebug
        def info(*args, &block)
          debug(*args, &block)
        end
        def info?
          debug?
        end
      end

      def logger
        @logger ||= begin
          logger = SemanticLogger['Rails']
          logger.extend(LogInfoAsDebug)
          logger
        end
      end

    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rails_semantic_logger-4.0.0.beta2 lib/rails_semantic_logger/extensions/rails/rack/logger_info_as_debug.rb
rails_semantic_logger-4.0.0.beta1 lib/rails_semantic_logger/extensions/rails/rack/logger_info_as_debug.rb
rails_semantic_logger-3.4.1 lib/rails_semantic_logger/extensions/rails/rack/logger_info_as_debug.rb
rails_semantic_logger-3.4.0 lib/rails_semantic_logger/extensions/rails/rack/logger_info_as_debug.rb
rails_semantic_logger-3.3.1 lib/rails_semantic_logger/extensions/rails/rack/logger_info_as_debug.rb
rails_semantic_logger-3.3.0 lib/rails_semantic_logger/extensions/rails/rack/logger_info_as_debug.rb
rails_semantic_logger-3.1.1 lib/rails_semantic_logger/extensions/rails/rack/logger_info_as_debug.rb
rails_semantic_logger-3.1.0 lib/rails_semantic_logger/extensions/rails/rack/logger_info_as_debug.rb