Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

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

Release History

This version
History Node

1.3

History Node

1.2

History Node

1.1

History Node

1.0

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
logrotater-1.3.tar.gz
(1.6 kB) Copy SHA256 Hash SHA256
Dumb Binary any Jul 9, 2013

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers DreamHost DreamHost Log Hosting