'Set log levels of services dynamically.'

def _set_log(self, context, body):

    prefix = body.get('prefix')
    level = body.get('level')
    utils.get_log_method(level)
    (binaries, services) = self._log_params_binaries_services(context, body)
    log_req = objects.LogLevel(context, prefix=prefix, level=level)
    if (constants.API_BINARY in binaries):
        utils.set_log_levels(prefix, level)
    for service in services:
        self.rpc_apis[service.binary].set_log_levels(context, service, log_req)
    return webob.Response(status_int=202)
