Skip to main content

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

Metadata

Release files for logrotater 1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for logrotater 1.3
File Interpreter ABI Platform Actions
logrotater-1.3.tar.gz Details for logrotater-1.3.tar.gz

Release files / logrotater-1.3.tar.gz

Download URL logrotater-1.3.tar.gz
Size 1.6 kB
Tags Source
SHA-256 checksum
How to use checksums
90914754804cc6182d76f7fba63a02c2a91774073591f7a84305e83923165123
BLAKE2b-256 checksum
How to use checksums
1b98f32200cd2e339cef36f6a3648caddd2a4f6e2f0e1de43304929809fc32d8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for logrotater 1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page