Llogrot

Documentation

Rotate and compress log files without a daemon.

Usage

logrot [options] [args...]
logrot -k 7 /var/log/app.log

Options

OptionDescription
-q, --quietPrint nothing on success
--versionShow the version and exit
-h, --helpShow help and exit

Exit codes

CodeMeaning
0Success
1Input could not be processed
2Usage error

Environment

NO_COLOR disables coloured output.