code: private void writeZipFile() {
  
          try {
              FileOutputStream fos = new FileOutputStream(ZIP_PATH);
              ZipGenerator zipGen = new ZipGenerator(fos);
              for (File file : CmsLogFileOptionProvider.getLogFiles()) {
                  if (!file.isDirectory() & !ZIP_PATH.equals(file.getAbsolutePath())) {
                      zipGen.addToZip(new File(CmsLogFileApp.LOG_FOLDER), file);
                  }
              }
              zipGen.close();
              fos.close();
  
          } catch (IOException e) {
              LOG.error("unable to build zip file", e);
          }
      }
docs: Writes the zip file with all logs.<p>