Under development!!! and in WIP stage. please do not use yet
An alternative to the populate linux tee program.
The biggest difference is log rotation. The gnu tee command will happily fill your disks, and this is normally not wanted.
This application reads from standard input and writes to a file, the same data is written to standard output. When the file reaches a certain limit it is truncated or rotated.
File rotation will happen by default as:
e.g command | tee2 myfile.log
- myfile.log is renamed to myfile_<iso_timestamp>.log
- a new file is created as myfile.log
- if the log-file-count is 3 when we have
myfile_{i}.log, myfile_{i=1}.log, myfile_{i+2}.log
,myfile_{i}.log
is deleted
- Log rotation
- Log truncation
- Reasonably performant.
- Fully compatible with tee. This application does not strive to be fully compatible with tee. It would be nice, but is not a goal.