/** {@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); } }
/** {@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); } }
/** {@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); } }