code: public static void setStandaloneLogging(Level level) {
          LOGGER.setUseParentHandlers(false);
          for (Handler h : LOGGER.getHandlers()) {
              LOGGER.removeHandler(h);
          }
          StdoutHandler handler = new StdoutHandler();
          handler.setFormatter(new InlineFormatter());
          LOGGER.addHandler(handler);
          
          final UncaughtExceptionHandler ueh = Thread.getDefaultUncaughtExceptionHandler();
          Thread.setDefaultUncaughtExceptionHandler((t, e) -> {
              LOGGER.log(Level.SEVERE, "Uncaught Exception in thread " + t.getName(), e);
              if (ueh != null) {
                  ueh.uncaughtException(t, e);
              }
          });
          
          setLogLevel(level);
      }
docs: Enable regular logging for all UBench code at the specified level.
  
  @param level
  the level to log for.