private void sendAlerts(final LogEvent event) {
    AlertingService alertingService = getAlertingService();

    AlertLevel alertLevel = AlertLevelConverter.fromLevel(event.getLevel());
    Instant instant = Instant.ofEpochMilli(event.getTimeMillis());
    String threadName = event.getThreadName();
    long threadId = Thread.currentThread().getId();
    String formattedMessage = event.getMessage().getFormattedMessage();
    String stackTrace = getStackTrace(event);

    alertingService.sendAlerts(alertLevel, instant, threadName, threadId, formattedMessage,
        stackTrace);
  }
Builds AlertAppender instances.

@param <B> The type to build
geode-log4j/src/main/java/org/apache/geode/alerting/log4j/internal/impl/AlertAppender.java