Log a string.

@param label label text
@param data string data
434042
public static void log(String label, String data)
   {
      if (LOG != null)
      {
         LOG.write(label);
         LOG.write(": ");
         LOG.println(data);
         LOG.flush();
      }
   }
87892
public void setLabels(java.util.Collection<Label> labels) {
        if (labels == null) {
            this.labels = null;
            return;
        }

        this.labels = new java.util.ArrayList<Label>(labels);
    }
741211
@Override
    public void log(final StatusData data) {
        if (!filtered(data)) {
            stream.println(data.getFormattedStatus());
        }
    }
668002
public void label(String text, Color color, double... coord) {
        Label label = new Label(text, coord);
        label.setColor(color);
        add(label);
    }
585179
public void setText(String text) {

        m_label.setText(text);
        m_label.setTitle(text);
        m_text = text;
        if (m_textMetricsKey != null) {
            truncate(m_textMetricsKey, m_labelWidth);
        }
    }
284022
public static String getTabularData(String[] labels, String[][] data, int padding) {
    int[] size = new int[labels.length];
    
    for (int i = 0; i < labels.length; i++) {
      size[i] = labels[i].length() + padding;
    }
    
    for (String[] row : data) {
      for (int i = 0; i < labels.length; i++) {
        if (row[i].length() >= size[i]) {
          size[i] = row[i].length() + padding;
        }
      }
    }
    
    StringBuffer tabularData = new StringBuffer();
    
    for (int i = 0; i < labels.length; i++) {
      tabularData.append(labels[i]);
      tabularData.append(fill(' ', size[i] - labels[i].length()));
    }
    
    tabularData.append("\n");
    
    for (int i = 0; i < labels.length; i++) {
      tabularData.append(fill('=', size[i] - 1)).append(" ");
    }
    
    tabularData.append("\n");
    
    
    for (String[] row : data) {
      for (int i = 0; i < labels.length; i++) {
        tabularData.append(row[i]);
        tabularData.append(fill(' ', size[i] - row[i].length()));
      }
      
      tabularData.append("\n");
    }
    
    return tabularData.toString();
  }
588726
public void sendJsonToTagged(Object data, String label) {
        sendToTagged(JSON.toJSONString(data), label);
    }
538740
function log(type, label, data) {
	var typeLabel = type.charAt(0).toUpperCase() + type.slice(1);
	var color;

	if (typeLabel === 'Error') {
		typeLabel = chalk.red(typeLabel);
		color = 'red';
	} else if (typeLabel === 'Warn') {
		typeLabel = chalk.yellow(typeLabel);
		color = 'yellow';
	} else if (typeLabel === 'Info') {
		typeLabel = chalk.green(typeLabel);
		color = 'green';
	} else if (typeLabel === 'Log') {
		typeLabel = chalk.gray(typeLabel);
		color = 'gray';
	}

	// used to avoid logging "undefined" in the console
	if (useTypeLabels) {
		label = typeLabel + ': ' + chalk.cyan(label);
	} else {
		label = chalk[color](label);
	}
	if (data) {
		console[type](label, data);
	} else {
		console[type](label);
	}
}
677848
public void addLabel(Label label)
    {
        // Add the label to any applications it is associated with
        List<Long> applicationIds = label.getLinks().getApplications();
        for(long applicationId : applicationIds)
        {
            Application application = applications.get(applicationId);
            if(application != null)
                labels(applicationId).add(label);
            else
                logger.severe(String.format("Unable to find application for label '%s': %d", label.getKey(), applicationId));
        }
    }
1025683
public void setActionLabel(CharSequence label){
        mEmptyActionText = label;
        mAction.setText(mEmptyActionText);
        mAction.setVisibility(TextUtils.isEmpty(mEmptyActionText) ? View.GONE : View.VISIBLE);
    }
612070
private static <I, D> void markAndPropagate(AbstractBaseDTNode<I, D> node, D label) {
        AbstractBaseDTNode<I, D> curr = node;

        while (curr != null && curr.getSplitData() != null) {
            if (!curr.getSplitData().mark(label)) {
                return;
            }
            curr = curr.getParent();
        }
    }
812818
public static void i(String tag, String msg, Object... args) {
        if (sLevel > LEVEL_INFO) {
            return;
        }
        if (args.length > 0) {
            msg = String.format(msg, args);
        }
        Log.i(tag, msg);
    }
803512
private void addField(final WComponent input, final String labelText, final String labelHint) {
		WLabel label = new WLabel(labelText, input);
		if (labelHint != null) {
			label.setHint(labelHint);
		}

		layout.addField(label, input);
	}
324271
protected void info(final String msg, final Object... data) {

		logger.info(msg, data);

		duplicateLogToConsole(msg, data);

	}
474612
public void sendToTagged(String message, String ... labels) {
        for (String label : labels) {
            sendToTagged(message, label);
        }
    }
736566
@Override
    public boolean validateLabel(String label) {
        Objects.requireNonNull(label, "label cannot be null");
        // check label is in set
        return !labels.contains(label);
    }
340334
public void setLabel(java.lang.String label) {
        getStateHelper().put(PropertyKeys.label, label);
    }