Sha256: 760ee3590300f385ef6cc639d940f99db2a6411ec6152b3064b444f1b6fde92a

Contents?: true

Size: 305 Bytes

Versions: 24

Compression:

Stored size: 305 Bytes

Contents

module Ezlog
  module Rails
    class RequestLogContext
      include LogContextHelper

      def initialize(app)
        @app = app
      end

      def call(env)
        within_log_context request_id: env['action_dispatch.request_id'] do
          @app.call(env)
        end
      end
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
ezlog-0.10.7 lib/ezlog/rails/request_log_context.rb
ezlog-0.10.5 lib/ezlog/rails/request_log_context.rb
ezlog-0.10.3 lib/ezlog/rails/request_log_context.rb
ezlog-0.10.2 lib/ezlog/rails/request_log_context.rb
ezlog-0.10.1 lib/ezlog/rails/request_log_context.rb
ezlog-0.10.0 lib/ezlog/rails/request_log_context.rb
ezlog-0.9.6 lib/ezlog/rails/request_log_context.rb
ezlog-0.9.5 lib/ezlog/rails/request_log_context.rb
ezlog-0.9.1 lib/ezlog/rails/request_log_context.rb
ezlog-0.9.0 lib/ezlog/rails/request_log_context.rb
ezlog-0.8.0 lib/ezlog/rails/request_log_context.rb
ezlog-0.7.1 lib/ezlog/rails/request_log_context.rb
ezlog-0.7.0 lib/ezlog/rails/request_log_context.rb
ezlog-0.6.0 lib/ezlog/rails/request_log_context.rb
ezlog-0.5.3 lib/ezlog/rails/request_log_context.rb
ezlog-0.5.2 lib/ezlog/rails/request_log_context.rb
ezlog-0.5.1 lib/ezlog/rails/request_log_context.rb
ezlog-0.5.0 lib/ezlog/rails/request_log_context.rb
ezlog-0.4.0 lib/ezlog/rails/request_log_context.rb
ezlog-0.3.5 lib/ezlog/rails/request_log_context.rb