Sha256: 79cc37b48d50c5b6bc847bb4316ff19d710a954b33d88e4fbc65e5f7fb046db0

Contents?: true

Size: 489 Bytes

Versions: 6

Compression:

Stored size: 489 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

6 entries across 6 versions & 1 rubygems

Version Path
rails_semantic_logger-4.2.1 lib/rails_semantic_logger/extensions/rails/rack/logger_info_as_debug.rb
rails_semantic_logger-4.2.0 lib/rails_semantic_logger/extensions/rails/rack/logger_info_as_debug.rb
rails_semantic_logger-4.1.3 lib/rails_semantic_logger/extensions/rails/rack/logger_info_as_debug.rb
rails_semantic_logger-4.1.2 lib/rails_semantic_logger/extensions/rails/rack/logger_info_as_debug.rb
rails_semantic_logger-4.1.1 lib/rails_semantic_logger/extensions/rails/rack/logger_info_as_debug.rb
rails_semantic_logger-4.1.0 lib/rails_semantic_logger/extensions/rails/rack/logger_info_as_debug.rb