Adds a log result to scan_id scan.
188987
def add_scan_log(self, scan_id, host='', name='', value='', port='',
                     test_id='', qod=''):
        
        self.scan_collection.add_result(scan_id, ResultType.LOG, host, name,
                                        value, port, test_id, 0.0, qod)
257214
public void add_logging_target(final DeviceProxy deviceProxy, final String target)
	    throws DevFailed {
        // Get connection on administration device
        if (deviceProxy.getAdm_dev() == null) {
            import_admin_device(deviceProxy, "add_logging_target");
        }

        // Prepeare data

        final String[] str = new String[2];
        str[0] = get_name(deviceProxy);
        str[1] = target;
        final DeviceData argin = new DeviceData();
        argin.insert(str);
        // And send command
        deviceProxy.getAdm_dev().command_inout("AddLoggingTarget", argin);
    }
923737
function _logGeneration (db, id, response) {
  debug('Logging try for job ID %s', id)

  return db.logGeneration(id, response)
}
247082
def add_log_error(self, x, flag_also_show=False, E=None):
        """"""
        self.parent_form.add_log_error(x, flag_also_show, E)
371924
def add_oct(self,oid,value,label=None):
		""""""
		self.add_oid_entry(oid,'OCTET',value,label=label)
1320229
def get_scan_results_xml(self, scan_id, pop_res):
        
        results = Element('results')
        for result in self.scan_collection.results_iterator(scan_id, pop_res):
            results.append(get_result_xml(result))

        logger.info('Returning %d results', len(results))
        return results
673560
def move_to_result(self, lst_idx):
        """"""
        self.in_result_idx.add(lst_idx)

        if lst_idx in self.not_in_result_root_match_idx:
            self.not_in_result_root_match_idx.remove(lst_idx)
49310
def add_pid(self, qname, sname, value, sym=True):
        """"""
        self.percentage_identity.loc[qname, sname] = value
        if sym:
            self.percentage_identity.loc[sname, qname] = value
1371952
def on_result(self, task, result):
        ''''''
        if not result:
            return
        if 'taskid' in task and 'project' in task and 'url' in task:
            logger.info('result %s:%s %s -> %.30r' % (
                task['project'], task['taskid'], task['url'], result))
            print(json.dumps({
                'taskid': task['taskid'],
                'project': task['project'],
                'url': task['url'],
                'result': result,
                'updatetime': time.time()
            }))
        else:
            logger.warning('result UNKNOW -> %.30r' % result)
            return
753427
def update_log(self, *args, **kwargs):
        """"""
        # Implemented from kitosid template for -
        # osid.resource.BinAdminSession.update_bin
        # OSID spec does not require returning updated catalog
        return Log(
            self._provider_manager,
            self._get_provider_session('log_admin_session').update_log(*args, **kwargs),
            self._runtime,
            self._proxy)
560567
def set_scanner_alert_threshold(self, scanner_ids, alert_threshold):
        """"""
        for scanner_id in scanner_ids:
            self.logger.debug('Setting alert threshold for scanner {0} to {1}'.format(scanner_id, alert_threshold))
            result = self.zap.ascan.set_scanner_alert_threshold(scanner_id, alert_threshold)
            if result != 'OK':
                raise ZAPError('Error setting alert threshold for scanner with ID {0}: {1}'.format(scanner_id, result))
1220326
def get_log_id(cls, id):
        
        conn = Qubole.agent()
        r = conn.get_raw(cls.element_path(id) + "/logs")
        return r.text
177489
def handle_log_entry(self, m):
        ''''''
        if m.time_utc == 0:
            tstring = ''
        else:
            tstring = time.ctime(m.time_utc)
        self.entries[m.id] = m
        print("Log %u  numLogs %u lastLog %u size %u %s" % (m.id, m.num_logs, m.last_log_num, m.size, tstring))
1244281
void appendLogToJobLog(String status) {
    if (jobLog_ == null) {
      return; // not using a common joblog
    }
    if (log_ != null) {
      StreamUtil.exec("/bin/rm " + LOGNAME, log_);
    }
  }
1322151
def _add_log_tab(self):
        """"""

        # text_tab = "Log (Alt+&{})".format(len(self.pages)+1)
        text_tab = "Log"

        self.pages.append(MyPage(text_tab=text_tab))

        # ### Log tab
        te = self.textEdit_log = self.keep_ref(QTextEdit())
        te.setReadOnly(True)
        self.tabWidget.addTab(te, text_tab)
1296590
def new_log(self):
        
        log_id = self._num_logs
        self._logs[log_id] = []
        self._num_logs += 1
        return log_id
453741
def add_log(self, group_name, field_name, log_string):
        
        self.assert_writeable()
        if group_name not in self.handle:
            self._add_group(group_name, {})
        sanitized_data = _sanitize_data_for_writing(log_string)
        self.handle[group_name].create_dataset(field_name, data=sanitized_data)