https://github.com/perliedman/roundabound
Simplistic log rotation utility
https://github.com/perliedman/roundabound
Last synced: about 1 year ago
JSON representation
Simplistic log rotation utility
- Host: GitHub
- URL: https://github.com/perliedman/roundabound
- Owner: perliedman
- License: bsd-2-clause
- Created: 2012-12-05T12:01:15.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2012-12-05T15:37:29.000Z (over 13 years ago)
- Last Synced: 2025-05-29T00:50:59.491Z (about 1 year ago)
- Language: Python
- Size: 117 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
roundabound
===========
It appears there is no simple and easy to understand solution for rotating
logs in Windows. **roundabound** attempts to fix this simple problem.
It will also work on UNIX, if you would want it for some reason.
Configuration is done in JSON:
```json
{
"sets": {
"logs": {
"pattern": "C:\\logs\\*.log.????????",
"archive_age": 7,
"archive_path": "c:\\archive"
},
"logs2": {
"pattern": "C:\\logs\\*.log????????",
"archive_age": 14,
"archive_path": "c:\\archive"
}
}
}
```
To run:
```
python -m Roundabound [-h] [--config CONFIG] [--verbosity {DEBUG,INFO,WARN,ERROR}]
```
```CONFIG``` will default to ```roundabound.cfg``` if omitted, verbosity is
```ERROR``` by default.