Log the request started and flush all loggers after it.

Methods
C
N
Class Public methods
new(app, tags=nil)
    # File railties/lib/rails/rack/logger.rb, line 8
 8:       def initialize(app, tags=nil)
 9:         @app, @tags = app, tags.presence
10:       end
Instance Public methods
call(env)
    # File railties/lib/rails/rack/logger.rb, line 12
12:       def call(env)
13:         if @tags
14:           Rails.logger.tagged(compute_tags(env)) { call_app(env) }
15:         else
16:           call_app(env)
17:         end
18:       end
Instance Protected methods
call_app(env)
    # File railties/lib/rails/rack/logger.rb, line 22
22:       def call_app(env)
23:         request = ActionDispatch::Request.new(env)
24:         path = request.filtered_path
25:         Rails.logger.info "\n\nStarted #{request.request_method} \"#{path}\" for #{request.ip} at #{Time.now.to_default_s}"
26:         @app.call(env)
27:       ensure
28:         ActiveSupport::LogSubscriber.flush_all!
29:       end
compute_tags(env)
    # File railties/lib/rails/rack/logger.rb, line 31
31:       def compute_tags(env)
32:         request = ActionDispatch::Request.new(env)
33: 
34:         @tags.collect do |tag|
35:           case tag
36:           when Proc
37:             tag.call(request)
38:           when Symbol
39:             request.send(tag)
40:           else
41:             tag
42:           end
43:         end
44:       end