Code example for SimpleFormatter

0
        if ( logdir != null ) {
            try { 
                Logger logger = Logger.getLogger("prefuse");
                logger.setUseParentHandlers(false);
                Handler fileHandler = new FileHandler(logdir+"/"+logfile);
                fileHandler.setFormatter(new SimpleFormatter());
                logger.addHandler(fileHandler);
            } catch ( IOException e ) {
                e.printStackTrace();
            } 
        } 
    } 
     
    /** 
     * Get a prefuse configuration property. 
     * @param key the name of the property to lookup 
     * @return the property value, or null if the key is not found 
     */ 
    public static String get(String key) {
        return s_config.getProperty(key);
    }