Пример #1
0
  /** {@inheritDoc} */
  public void logWarning(String warning) {
    LogMessage lm = new LogMessage();
    lm.setMessage(warning);
    lm.setLevel(LogMessage.Level.Warning);

    try {
      report(lm);
    } catch (Exception e) {
      LOG.log(Level.SEVERE, "Failed to report Warning activity: " + warning, e);
    }
  }
Пример #2
0
  /** {@inheritDoc} */
  public void logError(String error) {
    LogMessage lm = new LogMessage();
    lm.setMessage(error);
    lm.setLevel(LogMessage.Level.Error);

    try {
      report(lm);
    } catch (Exception e) {
      LOG.log(Level.SEVERE, "Failed to report Error activity: " + error, e);
    }
  }
Пример #3
0
  /** {@inheritDoc} */
  public void logInfo(String info) {
    LogMessage lm = new LogMessage();
    lm.setMessage(info);
    lm.setLevel(LogMessage.Level.Information);

    try {
      report(lm);
    } catch (Exception e) {
      LOG.log(Level.SEVERE, "Failed to report Info activity: " + info, e);
    }
  }