Sha256: 0a3ab1decc6c62fc2f874625a3642c57ad8d04cf6874d62300f35364ba25b56d
Contents?: true
Size: 353 Bytes
Versions: 55
Compression:
Stored size: 353 Bytes
Contents
require 'logger' module Rack # Sets up rack.logger to write to rack.errors stream class Logger def initialize(app, level = ::Logger::INFO) @app, @level = app, level end def call(env) logger = ::Logger.new(env[RACK_ERRORS]) logger.level = @level env[RACK_LOGGER] = logger @app.call(env) end end end
Version data entries
55 entries across 53 versions & 14 rubygems