class Rack::Logger
Sets up rack.logger to write to rack.errors stream
def call(env)
def call(env) logger = ::Logger.new(env[RACK_ERRORS]) logger.level = @level env[RACK_LOGGER] = logger @app.call(env) end
def initialize(app, level = ::Logger::INFO)
def initialize(app, level = ::Logger::INFO) @app, @level = app, level end