tools: add logrotate module

this is a helper to rotate and iterate over log files
there is an iterator for open filehandles as well as
only the filename

also it has the possibilty to rotate them
for compression, zstd is used

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak
2020-09-28 15:32:04 +02:00
committed by Dietmar Maurer
parent b02d49ab26
commit 8074d2b0c3
2 changed files with 185 additions and 0 deletions

View File

@ -32,6 +32,7 @@ pub mod ticket;
pub mod statistics;
pub mod systemd;
pub mod nom;
pub mod logrotate;
mod parallel_handler;
pub use parallel_handler::*;