Skip to main content

This package provides additional loghandlers for use with the Python standardlib logging module.

Currently, only one additional logging handler is provided, which manages log file rotation based on Cron-like settings. So you can tell to rotate the logs at every day, week, month, or similar. Different to the logging.handlers.TimedRotatingFileHandler you can expect the rotation to happen at beginning of intervals.

For instance, if you start daily logging with logging.handlers.TimedRotatingFileHandler at 11:12h, a rollover will happen at 11:12h on the next day. With ulif.loghandlers.DatedRotatingFileHandler the rollover will instead happen at midnight, regardless of when you started the logging.

Furthermore you can let the number of backup files increase indefinitely by passing backupCount = -1.

Please note, that this package is still in a very early state and changes, also to the API, are likely to happen in near future.

Comments and patches are welcome. Please send these to uli at gnufix dot de.

Installation

The package can be installed by:

$ pip install ulif.loghandlers

Afterwards you can use ulif.loghandlers in your Python programmes. See the documentation for details.

0.1.1 (2012-07-04)

  • Fixed bug: second rollover did not rename files correctly if backupCount was set to -1.

0.1 (2012-05-22)

Initial implementation.

Download

Release files for ulif.loghandlers 0.1.1

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

Source distribution (sdist)

Source distribution for ulif.loghandlers 0.1.1
File Size Uploaded
ulif.loghandlers-0.1.1.tar.gz 17.0 kB Details

Release files / ulif.loghandlers-0.1.1.tar.gz

Download URL ulif.loghandlers-0.1.1.tar.gz
Size 17.0 kB
Tags Source
SHA-256 checksum
How to use checksums
fc5638ac2511e725809cc5a398227d5149349ecb2261d1d1a4c65b8292c82da9
BLAKE2b-256 checksum
How to use checksums
82c550ae19cef98bb069acec4c386493f139aedbb4bd0e53cb4e2f5a0bc65d55
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.1 This release

1 release file

0.1

1 release 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