code: @Override
      protected void append(LoggingEvent event) {
          GelfMessage gelfMessage = GelfMessageFactory.makeMessage(layout, event, this);
  
          if (getGelfSender() == null) {
              errorHandler.error("Could not send GELF message. Gelf Sender is not initialised and equals null");
          } else {
              GelfSenderResult gelfSenderResult = getGelfSender().sendMessage(gelfMessage);
              if (!GelfSenderResult.OK.equals(gelfSenderResult)) {
                  errorHandler.error("Error during sending GELF message. Error code: " + gelfSenderResult.getCode() + ".", gelfSenderResult.getException(), ErrorCode.WRITE_FAILURE);
              }
          }
  
      }
docs: /*protected GelfAMQPSender getGelfAMQPSender(String amqpURI, String amqpExchangeName, String amqpRoutingKey, int amqpMaxRetries) throws IOException, URISyntaxException, NoSuchAlgorithmException, KeyManagementException {
  return new GelfAMQPSender(amqpURI, amqpExchangeName, amqpRoutingKey, amqpMaxRetries);
  }