Package com.seeq.utilities.process
Class LogBundler
java.lang.Object
com.seeq.utilities.process.LogBundler
-
Method Summary
Modifier and TypeMethodDescriptionstatic File
getLogBundle
(Configuration configuration, boolean encrypted) Bundles the Seeq server logs into a single zip file for export.
-
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 usingSimpleHybrid.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 fileInvalidKeyException
- If encryption is enabled and the log export public key file does not contain a valid public keyInvalidKeySpecException
- If encryption is enabled and the log export public key file does not contain a valid public key
-