docs: @Override
    public void publish(LogRecord record) {
      // Convert Log
      Throwable throwable = record.getThrown();
      if (throwable != null) {
        synchronized (ExceptionRepositoryAsMetrics.INSTANCE) {
          // We would not include the message if already exceeded the exceptions limit
          if (ExceptionRepositoryAsMetrics.INSTANCE.getExceptionsCount() >= exceptionsLimit) {
            droppedExceptionsCount.incr();
            return;
          }
  
          // Convert the record
          StringWriter sink = new StringWriter();
          throwable.printStackTrace(new PrintWriter(sink, true));
          String trace = sink.toString();
  
          Metrics.ExceptionData.Builder exceptionDataBuilder =
              ExceptionRepositoryAsMetrics.INSTANCE.getExceptionInfo(trace);
          exceptionDataBuilder.setCount(exceptionDataBuilder.getCount() + 1);
          exceptionDataBuilder.setLasttime(new Date().toString());
          exceptionDataBuilder.setStacktrace(trace);
  
          // Can cause NPE and crash HI
          //exceptionDataBuilder.setLogging(record.getMessage());
  
          if (record.getMessage() == null) {
            exceptionDataBuilder.setLogging("");
          } else {
            exceptionDataBuilder.setLogging(record.getMessage());
          }
        }
      }
    }