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

Provides concurrent rotating file handler for posix-compatible OSes.

Project description

Build Status

Provides concurrent rotating file handler for posix-compatible OSes.

By default multiprocessing.Lock is used. If you fork from one process that configures logger this case is preferred because of speed. If you have many undependantly started processes you should use instance of ploghandler.Lockf class. The Lockf class uses fcntl.lockf call described in man 3 lockf. Optinally ploghandler.Flock (man 2 flock) can be used.

Supported versions:

Currently supported versions: 2.6, 2.7 and 3.4.


import logging

from ploghandler import PLogHandler, Lockf

log = logging.getLogger("test")
handler = PLogHandler(
    maxBytes=1024 * 1024,


log.debug("test message")

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 ploghandler, version 0.5.0
Filename, size File type Python version Upload date Hashes
Filename, size ploghandler-0.5.0.tar.gz (4.4 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