@Override public boolean writeLogs(String container,OutputStream output) throws IOException {
  try {
    Process executedProcess=followLogs(container);
    IOUtils.copy(executedProcess.getInputStream(),output);
    executedProcess.waitFor(COMMAND_TIMEOUT.getMillis(),MILLISECONDS);
  }
 catch (  InterruptedException e) {
    return false;
  }
  return true;
}

@ Override public boolean writeLogs ( String container , OutputStream output ) throws IOException { try { Process executedProcess = followLogs ( container ) ; IOUtils . copy ( executedProcess . getInputStream ( ) , output ) ; executedProcess . waitFor ( COMMAND_TIMEOUT . getMillis ( ) , MILLISECONDS ) ; } catch ( InterruptedException e ) { return false ; } return true ; }
blocks until all logs collected from the container .
