Sets up rack.logger to write to rack.errors stream

Methods
C
N
Class Public methods
new(app, level = ::Logger::INFO)
# File lib/rack/logger.rb, line 6
def initialize(app, level = ::Logger::INFO)
  @app, @level = app, level
end
Instance Public methods
call(env)
# File lib/rack/logger.rb, line 10
def call(env)
  logger = ::Logger.new(env[RACK_ERRORS])
  logger.level = @level

  env[RACK_LOGGER] = logger
  @app.call(env)
end