Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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).