Code example for LogManager

Methods: readConfiguration, reset

0
     */ 
    protected void setUp() throws Exception { 
        super.setUp(); 
        errSubstituteStream = new NullOutputStream();
        System.setErr(new PrintStream(errSubstituteStream));  
    } 
 
    /* 
     * @see TestCase#tearDown() 
     */ 
    protected void tearDown() throws Exception { 
        //initProps 
        props = new Properties();
        props.put("handlers", className + "$MockHandler " + className
                + "$MockHandler"); 
        props.put("java.util.logging.FileHandler.pattern", "%h/java%u.log");
        props.put("java.util.logging.FileHandler.limit", "50000");
        props.put("java.util.logging.FileHandler.count", "5");
        props.put("java.util.logging.FileHandler.formatter",
                "java.util.logging.XMLFormatter"); 
        props.put(".level", "FINE");