public String captureMessage( String message, Long timestamp, String loggerClass, Integer logLevel, String culprit, Map<String, ?> tags) { timestamp = (timestamp == null ? Utils.now() : timestamp); Message msg = buildMessage( message, formatTimestamp(timestamp), loggerClass, logLevel, culprit, null, tags); send(msg, timestamp); return msg.eventId; }
public String captureException(Throwable exception, Map<String, ?> tags) { long timestamp = Utils.now(); return captureException(exception.getMessage(), timestamp, null, null, null, exception, tags); }