Code example for Logger

Methods: finer, log

0
 
    private static boolean loadLibrary(Class<?> clazz, String file,
        boolean absPath, boolean quiet)
    { 
        try { 
            log.finer(clazz.getName() + " --> Loading library: " + file);
            if (absPath) {
                System.load(file);
            } else { 
                System.loadLibrary(file);
            } 
            return true; 
        } catch (UnsatisfiedLinkError e) {
            if (quiet) {
                log.log(Level.FINER, "UnsatisfiedLinkError. " + e);
            } else { 
                log.log(Level.SEVERE, "UnsatisfiedLinkError. " + e);
            } 
            return false; 
        } 
    }