Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/urin/logrotate.bat
Log rotation for windows
https://github.com/urin/logrotate.bat
Last synced: 15 days ago
JSON representation
Log rotation for windows
- Host: GitHub
- URL: https://github.com/urin/logrotate.bat
- Owner: urin
- License: mit
- Created: 2021-04-11T01:06:12.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-04-11T01:14:12.000Z (almost 4 years ago)
- Last Synced: 2024-11-06T23:30:59.732Z (2 months ago)
- Language: Batchfile
- Size: 3.91 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# logrotate.bat - Log rotation for windows
## Usage
```bat
logrotate.bat filename maxfilecount [maxfilesize]filename : The file name to rotate.
maxfilecount: Number of backup files.
maxfilesize : Rotated if the size of file exceeds specified size.
(Default is 0. Unit notation is available (K, M and G))
```## Examples
```bat
logrotate.bat path\to\file 1
```The file is renamed to path\to\file.1.
The file path\to\file.1 is deleted if exists.```bat
logrotate.bat path\to\file 100 128
```The file is rotated from path\to\file.1 to file\to\file.100
if the size exeeds 128 bytes.```bat
logrotate.bat path\to\file 10 10M
```The file is rotated from path\to\file.1 to file\to\file.10
if the size exeeds 10 Mega-bytes.## License
[MIT](LICENSE). Copyright (c) 2015 [Urin](https://github.com/urin).