protocolStr != null ? protocolStr : Protocol.TCP.name());
if (protocol == Protocol.UDP) {
isFlush = true;
}
final AbstractSocketManager manager = createSocketManager(name, protocol, host, port, sslConfig,
reconnectDelay, fail, layout);
return new SocketAppender(name, layout, filter, manager, ignoreExceptions, isFlush,
isAdvertise ? config.getAdvertiser() : null);
}