code: public static void replaceDefaultHandler(Handler handler) {
      Logger rootlogger = LogManager.getLogManager().getLogger("");
      for(Handler h : rootlogger.getHandlers()) {
        if(h instanceof CLISmartHandler) {
          rootlogger.removeHandler(h);
        }
      }
      addHandler(handler);
    }
docs: Replace the default log handler with the given log handler.
  
  This will remove all {@link CLISmartHandler} found on the root logger. It
  will leave any other handlers in place.
  
  @param handler Logging handler.