Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Additional logging handlers.

Project description

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.

Note

Python2.6, 2.7 only!

The package is currently usable with Python 2.6 and 2.7 only! Please drop me a line if you need it for other versions.

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

Project details


Download files

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

Files for ulif.loghandlers, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size ulif.loghandlers-0.1.1.tar.gz (17.0 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page