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

Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

logrotater-1.3.tar.gz (1.6 kB view details)

Uploaded Source

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

Hashes for logrotater-1.3.tar.gz
Algorithm Hash digest
SHA256 90914754804cc6182d76f7fba63a02c2a91774073591f7a84305e83923165123
MD5 55788c90ea9412470a7141b3e1315f28
BLAKE2b-256 1b98f32200cd2e339cef36f6a3648caddd2a4f6e2f0e1de43304929809fc32d8

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.3 This release

1 file

1.2

1 file

1.1

1 file

1.0

1 file

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