

def log_request(self, handler):
    'Writes a completed HTTP request to the logs.\n\n        By default writes to the python root logger.  To change\n        this behavior either subclass Application and override this method,\n        or pass a function in the application settings dictionary as\n        ``log_function``.\n        '
    if ('log_function' in self.settings):
        self.settings['log_function'](handler)
        return
    if (handler.get_status() < 400):
        log_method = access_log.info
    elif (handler.get_status() < 500):
        log_method = access_log.warning
    else:
        log_method = access_log.error
    request_time = (1000.0 * handler.request.request_time())
    log_method('%d %s %.2fms', handler.get_status(), handler._request_summary(), request_time)

dataset/ETHPy150Open RobotWebTools/rosbridge_suite/rosbridge_server/src/tornado/web.py Application.log_request/original