Documentation
Rotate and compress log files without a daemon.
Usage
logrot [options] [args...]
logrot -k 7 /var/log/app.logOptions
| Option | Description |
|---|---|
-q, --quiet | Print nothing on success |
--version | Show the version and exit |
-h, --help | Show help and exit |
Exit codes
| Code | Meaning |
|---|---|
| 0 | Success |
| 1 | Input could not be processed |
| 2 | Usage error |
Environment
NO_COLOR disables coloured output.