Code example for LogManager

Methods: addLogger

0
			// TODO Auto-generated catch block 
			e.printStackTrace();
		} 
    	lm = LogManager.getLogManager();
    	logger = Logger.getLogger(className);
    	lm.addLogger(logger);
    	logger.setLevel(Level.INFO);
    	fh.setFormatter(new XMLFormatter());
    	logger.addHandler(fh);
    }         
     
    public void LOG(String msg) {
    	logger.log(Level.INFO, msg);
    } 
     
    public void DONE() { 
    	fh.close();
    } 
} 
Contextual code suggestions in your IDE  Get Codota for Java