A python logrotater
Project description
This library is a simple logrotater (or file rotater). Simply pass in the path to the main logfile and this library will rotate all the logs by an increment of 1.
Example:
import logrotater
rotater = logrotater.LogRotate(prefix=’/home/kyle/p4.log’, verbose=True)
rotater.rotate()
The prefix path should be the path of the main logfile without the .N extension. The previous example would rotate /home/kyle/p4.log.N to /home/kyle/p4.log.N+1, move /home/kyle/p4.log to /home/kyle/p4.log.1 and create a new empty /home/kyle/p4.log
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file logrotater-1.3.tar.gz.
File metadata
- Download URL: logrotater-1.3.tar.gz
- Upload date:
- Size: 1.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
90914754804cc6182d76f7fba63a02c2a91774073591f7a84305e83923165123
|
|
| MD5 |
55788c90ea9412470a7141b3e1315f28
|
|
| BLAKE2b-256 |
1b98f32200cd2e339cef36f6a3648caddd2a4f6e2f0e1de43304929809fc32d8
|