.::ALFACON::.Dev-Team.::.
CompressLog
Handles and compact log files.
Install:
gem 'compresslog'
How To Use:
To compact all logs just if its needed:
log_compress_full
To check if backup is needed:
backutp_is_needed?
To backup log files made by LogRotate:
log_compress
To delete log files with format 'log.0, log.1, ..' use:
log_delete
To make all process: verificar a necessidade -> compactar log -> excluir logs
log_compress_full
Automatização
Use alguma Gem como 'rufus-scheduler' para automatizar o backup em um período x.