LogCleanerTask
Description
LogCleanerTask element describes a Task capable of compress log files (or other files as well) older than n days and eventually delete them if older than m days. Directory to scan for and file name pattern are configurable.
The following table shows the LogCleanerTask element's attributes:
Attribute | Type | Description |
---|---|---|
type | fixed | This attribute must assume the value task |
class | fixed | This attribute must assume the value it.greenvulcano.scheduler.util.log.LogCleanerTask |
name | required | Task name. |
auto-start | required | If 'true' Task is automatically registered on the timer. |
enabled | optional | Task activation status.
The admitted values are:
|
log-directory | optional | The log directory to be searched for files.
Can contains placeholders resolved at runtime and can reference Task and Trigger properties. Default to spTemplate:Gv.app.home/log. |
zip-older-than | optional | If greater than 0 indicates the number of days for the oldest log file to compress.
Default to 7. |
zip-filter | optional | Search pattern for log file to compress.
Default to: (.*\.log$)|(.*\.log\.\d*$)|(.*\.log\.\d{4}-\d{2}-\d{2}$) |
zip-mode | optional | Compression mode:
|
delete-older-than | optional | If greater than 0 indicates the number of days for the oldest log file to delete.
Default to 14. |
delete-filter | optional | Search pattern for log file to delete.
Default to: (.*\.log$)|(.*\.log\.\d*$)|(.*\.log\..*\.zip$)|(.*\.log\..*\.gz$) |
Might contain the following sub-elements:
- Description
- Triggers
- JbProperties