Code example for Logger

Methods: info, log

0
        Validate.notNull(device, "Injected Android device for is null!");
 
        try { 
            device.uninstallPackage(APK_APP_NAME);
 
            log.info("Uninstallation of Android server for Arquillian Droidium web was performed.");
        } catch (AndroidExecutionException ex) {
            log.info("Uninstallation of Android server for Arquillian Droidium web failed.");
        } 
 
        try { 
            log.log(Level.INFO,
                "Removing port forwaring from {0} to {1} for Android server of Arquillian Droidium web support.", 
                new Object[] { device.getDroneHostPort(), device.getDroneGuestPort() });
 
            device.removePortForwarding(device.getDroneHostPort(), device.getDroneGuestPort());
 
            log.info("Removing of port forwarding for Arquillian Droidium web support was successful. ");
        } catch (AndroidExecutionException ex) {
            log.info("Removing of port forwarding for Arquillian Droidium Web support after Android server "
                + "was uninstalled failed."); 
        }