docs: static File getLogDirectory(Object newValue, File defaultDirectory) {
  
          File newDirectory = defaultDirectory;
  
          // If a value was specified, try creating a file with it
          if (newValue != null && newValue instanceof String) {
              newDirectory = new File((String) newValue);
          }
  
          if (newDirectory == null) {
              String value = ".";
              try {
                  value = AccessController.doPrivileged(new java.security.PrivilegedExceptionAction<String>() {
                      @Override
                      public String run() throws Exception {
                          return System.getProperty("user.dir");
                      }
                  });
              } catch (Exception ex) {
                  // do nothing
              }
              newDirectory = new File(value);
          }
  
          return LoggingFileUtils.validateDirectory(newDirectory);
      }