class Falcon::Verbose
def log(start_time, env, response, error)
def log(start_time, env, response, error) duration = Time.now - start_time request_method = env['REQUEST_METHOD'] request_path = env['PATH_INFO'] server_protocol = env['SERVER_PROTOCOL'] if response status, headers, body = response @logger.info "#{request_method} #{request_path} #{server_protocol} -> #{status}; Content length #{headers.fetch('Content-Length', '-')} bytes; took #{duration} seconds" else @logger.info "#{request_method} #{request_path} #{server_protocol} -> #{error}; took #{duration} seconds" end end