class Gemstash::Logging::RackMiddleware

Rack middleware to set the Rack logger to the Gemstash logger.

Public Class Methods

new(app) click to toggle source
# File lib/gemstash/logging.rb, line 58
def initialize(app)
  @app = app
end

Public Instance Methods

call(env) click to toggle source
# File lib/gemstash/logging.rb, line 62
def call(env)
  env["rack.logger"] = Gemstash::Logging.logger
  @app.call(env)
end