Code example for Handler

Methods: setLevel

0
    @Override 
    public void setLevel(Level newLevel) throws SecurityException {
        super.setLevel(newLevel);
        Handler t = resolve();
        if(t!=null)
            t.setLevel(newLevel);
    } 
 
    @Override 
    public boolean isLoggable(LogRecord record) {
        Handler t = resolve();
        if(t!=null)
            return t.isLoggable(record);
        else 
            return super.isLoggable(record);
    } 
}