docs: protected File createLogDir() {
          File logDir = Optional.ofNullable(logDirPath)
                                      .map(Paths::get)
                                      .map(Path::toFile)
                                      .orElse(new File(System.getProperty("java.io.tmpdir")));
  
          if (!logDir.exists()) {
              if (!logDir.mkdirs()) {
                  log.warn("Unable to create log directory: " + logDir.getAbsolutePath());
                  logDir = new File(System.getProperty("java.io.tmpdir"));
                  log.info("Using default log directory: " + logDir.getAbsolutePath());
              }
          }
  
          File logs = new File(logDir, "zookeeper" + System.currentTimeMillis()).getAbsoluteFile();
  
          if (autoDeleteLogs) {
              logs.deleteOnExit();
          }
  
          return logs;
      }