Archive logs older than a specified number of days.
Defines
archive.olderthan: Archive logs older than this number of days (default = 5).
Notes
This task searches all deployed bundles for logs older than the specified number of days. It uses the bundle info attribute "Runtime-Logs" to locate log files.
The older logs are compressed and stored within the archives directory inside the BundleWorks work directory.
This task needs to be added to the cron table to execute periodically, preferably each night. The cron entry should execute bw taskrun archivelogs using the 'bw' executable inside the BundleWorks work directory. This 'bw' automatically loads BundleWorks before executing a command.