final GelfConfiguration gelfConfiguration = new GelfConfiguration(new InetSocketAddress(hostname, port))
.transport(GelfTransports.valueOf(protocol));
LOG.debug("Initializing GELF sender and connecting to {}://{}:{}", protocol, hostname, port);
final GelfTransport gelfTransport;
try {
gelfTransport = GelfTransports.create(gelfConfiguration);
} catch (Exception e) {
final String error = "Error initializing " + this.getClass() + ": " + e.getMessage();
LOG.error(error, e);