Sha256: 412b253b1ac2a63ab3ae7b042c4d488e74f91fb6c0a28dc8ca4dca2fffc3d272

Contents?: true

Size: 492 Bytes

Versions: 3

Compression:

Stored size: 492 Bytes

Contents

Rails::Rack::Logger

# Drop rack Started message to debug level message
module Rails
  module Rack
    class Logger
      def self.logger
        @@logger
      end

      private

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

      def logger
        self.class.logger
      end

      @@logger = SemanticLogger['Rack']
      @@logger.extend(LogInfoAsDebug)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rails_semantic_logger-4.0.1 lib/rails_semantic_logger/extensions/rails/rack/logger_info_as_debug.rb
rails_semantic_logger-4.0.0 lib/rails_semantic_logger/extensions/rails/rack/logger_info_as_debug.rb
rails_semantic_logger-4.0.0.rc1 lib/rails_semantic_logger/extensions/rails/rack/logger_info_as_debug.rb