private void logs(final String applicationId, final File folder) throws IOException {
    LOG.log(Level.FINE, "Fetching logs for application [{0}] and storing them in folder [{1}]",
        new Object[]{applicationId, folder.getAbsolutePath()});
    if (!folder.exists() && !folder.mkdirs()) {
      LOG.log(Level.WARNING, "Failed to create [{0}]", folder.getAbsolutePath());
    }
    this.logFetcher.fetch(applicationId, folder);
  }
private void logs ( final String applicationId , final File folder ) throws IOException { LOG . log ( Level . FINE , "Fetching logs for application [{0}] and storing them in folder [{1}]" , new Object [ ] { applicationId , folder . getAbsolutePath ( ) } ) ; if ( ! folder . exists ( ) && ! folder . mkdirs ( ) ) { LOG . log ( Level . WARNING , "Failed to create [{0}]" , folder . getAbsolutePath ( ) ) ; } this . logFetcher . fetch ( applicationId , folder ) ; }
Fetches the logs for the application with the given id and stores them in the given folder. One file per container.

@param applicationId
@param folder
@throws IOException