https://github.com/kvch/funrotate
log rotator inspired by logrotate with several twists
https://github.com/kvch/funrotate
Last synced: 3 months ago
JSON representation
log rotator inspired by logrotate with several twists
- Host: GitHub
- URL: https://github.com/kvch/funrotate
- Owner: kvch
- License: agpl-3.0
- Created: 2022-06-30T15:29:58.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-06-30T15:35:19.000Z (almost 3 years ago)
- Last Synced: 2025-02-02T00:24:54.057Z (4 months ago)
- Language: Rust
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# funrotate
The project is inspired by `logrotate`. It supports similar configuration
options, but usually with a twist. DO NOT USE THE TOOL.Quirks:
* no matter what rotation strategy you choose, the tool will always use copytruncate
* you can only disable copytruncate, if you select nocopytruncate
* instead of compressing files, it duplicates every byte in every line
* "compressed" files are named {filename}.zip## Configuration
You can configure `funrotate` using the file `funrotate.toml`.
```toml
[[files]]
path = "file.log"
interval = "daily"
max_files = 3
compress = true
size = 1024
strategy = "create" # copytruncate[[files]]
path = "other-file.log"
interval = "daily"
max_files = 4
compress = false
size = 1024
strategy = "copytruncate" # copytruncate
```