log.error(e);
System.err.println(e);
    void doIt(int times) {        for(int i=0; i < times; i++) {            System.out.println("\nAttempt #" + (i + 1));            System.out.print("Connecting to channel: ");            try {                channel.connect("ConnectTest");                System.out.println("-- connected --");            }            catch(Exception e) {                System.out.println("-- connection failed --");                log.error(e);            }            System.out.print("Disconnecting from channel: ");            channel.disconnect();            System.out.println("-- disconnected --");        }            }