}
return new SocketAppender(name, layout, filter, manager, handleExceptions, isFlush);
}
protected static AbstractSocketManager createSocketManager(String protocol, String host, int port, int delay) {
Protocol p = Protocol.valueOf(protocol.toUpperCase());
switch (p) {
case TCP:
return TCPSocketManager.getSocketManager(host, port, delay);
case UDP:
return DatagramSocketManager.getSocketManager(host, port);