class Rack::CommonLogger
def call(env)
exceptions raised during the sending of the response body will
the logging happens after the request body has been fully sent, any
they should be loaded after this middleware. Additionally, because
will not be logged, so if exception handling middleware are used,
returned. Note that if the app raises an exception, the request
Log all requests in common_log format after a response has been
def call(env) began_at = Utils.clock_time status, headers, body = response = @app.call(env) response[2] = BodyProxy.new(body) { log(env, status, headers, began_at) } response end