Class LogBundler

java.lang.Object
com.seeq.utilities.process.LogBundler

public final class LogBundler extends Object
  • Method Details

    • getLogBundle

      public static File getLogBundle(Configuration configuration, boolean encrypted) throws IOException, InvalidKeyException, InvalidKeySpecException
      Bundles the Seeq server logs into a single zip file for export.
      Parameters:
      configuration - The Configuration object to use to find the data folder and global folder.
      encrypted - When true, the zipped log bundle will be encrypted using SimpleHybrid.encrypt(java.io.File, java.io.File, java.io.File). The resulting encrypted data and key files will then be zipped and returned.
      Returns:
      a zip file containing server logs
      Throws:
      IOException - If there is an error reading from the data folder If encryption is enabled and there is an error reading the log export public key file
      InvalidKeyException - If encryption is enabled and the log export public key file does not contain a valid public key
      InvalidKeySpecException - If encryption is enabled and the log export public key file does not contain a valid public key