Sha256: 71d2e8fc929bb3d325697a7ab15558694e412cfaf1024b798790310856b7c844

Contents?: true

Size: 361 Bytes

Versions: 7

Compression:

Stored size: 361 Bytes

Contents

Rails::Rack::Logger

# Replace rack started message with a semantic equivalent
module Rails
  module Rack
    class Logger
      def started_request_message(request)
        {
          message: 'Started',
          method:  request.request_method,
          path:    request.filtered_path,
          ip:      request.ip
        }
      end

    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

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