public void addHandler(Handler handler) throws SecurityException {
  handler.getClass();
  checkPermission();
  handlers.add(handler);
}

public void addHandler ( Handler handler ) throws SecurityException { handler . getClass ( ) ; checkPermission ( ) ; handlers . add ( handler ) ; }
add a log handler to receive logging messages . < p > by default , loggers also send their output to their parent logger . typically the root logger is configured with a set of handlers that essentially act as default handlers for all loggers .
