base/base/src/main/com/thesett/util/log4j/SilentFailSocketAppender.java
void connect(InetAddress address, int port)
    {
        if (this.address == null)
        {
            return;
        }

        try
        {
            // First, close the previous connection if any.
            cleanUp();

            Socket socket = new Socket();
            SocketAddress socketAddr = new InetSocketAddress(address, port);

            socket.connect(socketAddr, 10);

            oos = new ObjectOutputStream(socket.getOutputStream());
        }
        catch (IOException e)
        {
            // Silently fail and do not retry later.
            // Exception noted so can be ignored.
            e = null;

            /*
             * String msg = "Could not connect to remote log4j server at [" +address.getHostName()+"].";
             * if(reconnectionDelay > 0) { msg += " We will try again later."; fireConnector(); // fire the connector
             * thread } LogLog.error(msg, e); */
        }
    }
void connect(InetAddress address, int port)
    {
        if (this.address == null)
        {
            return;
        }

        try
        {
            // First, close the previous connection if any.
            cleanUp();

            Socket socket = new Socket();
            SocketAddress socketAddr = new InetSocketAddress(address, port);

            socket.connect(socketAddr, 10);

            oos = new ObjectOutputStream(socket.getOutputStream());
        }
        catch (IOException e)
        {
            // Silently fail and do not retry later.
            // Exception noted so can be ignored.
            e = null;

            /*
             * String msg = "Could not connect to remote log4j server at [" +address.getHostName()+"].";
             * if(reconnectionDelay > 0) { msg += " We will try again later."; fireConnector(); // fire the connector
             * thread } LogLog.error(msg, e); */
        }
    }
void connect ( InetAddress address , int port ) { if ( this . address == null ) { return ; } try { // First, close the previous connection if any. cleanUp ( ) ; Socket socket = new Socket ( ) ; SocketAddress socketAddr = new InetSocketAddress ( address , port ) ; socket . connect ( socketAddr , 10 ) ; oos = new ObjectOutputStream ( socket . getOutputStream ( ) ) ; } catch ( IOException e ) { // Silently fail and do not retry later. // Exception noted so can be ignored. e = null ; /*
             * String msg = "Could not connect to remote log4j server at [" +address.getHostName()+"].";
             * if(reconnectionDelay > 0) { msg += " We will try again later."; fireConnector(); // fire the connector
             * thread } LogLog.error(msg, e); */ } }
Connects to remote server at <code>address</code> and <code>port</code>.

@param address The address to connect to.
@param port    The port to connect to.
Connects to remote server at <code > address< / code > and <code > port< / code > .