Code example for Handler

Methods: close, flush

0
 
    } 
 
    public void detach() { 
        logger.removeHandler(handler);
        handler.flush();
        handler.close();
    } 
 
    @Override 
    protected void finalize() throws Throwable { 
        detach(); 
    } 
 
 
}