Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
 public String captureException(Throwable exception, Map<String, ?> tags) {
   long timestamp = Utils.now();
   return captureException(exception.getMessage(), timestamp, null, null, null, exception, tags);
 }