code: protected @Nonnull File getLogDir() {
          File dir = new File(Jenkins.getInstance().getRootDir(),"logs/slaves/"+nodeName);
          if (!dir.exists() && !dir.mkdirs()) {
              LOGGER.severe("Failed to create agent log directory " + dir.getAbsolutePath());
          }
          return dir;
      }
docs: Directory where rotated agent logs are stored.
  
  The method also creates a log directory if required.
  
  @since 1.613