Metadata-Version: 1.1
Name: ploghandler
Version: 0.4
Summary: Provides concurrent rotating file handler for posix-compatible OSes.
Home-page: https://github.com/NightBlues/ploghandler
Author: Vadim Radovel
Author-email: vadim@radovel.ru
License: GPLv3
Description: .. |travis| image:: https://travis-ci.org/NightBlues/ploghandler.svg?branch=master
           :target: https://travis-ci.org/NightBlues/ploghandler
           :alt: Build Status
        
        
        Posix Concurrent File Handler
        =============================
        
        |travis|
        
        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 ``python 2.6`` and ``python 2.7`` are supported. Work for ``python 3.2`` in progress.
        
        Example:
        --------
        
        ::
        
            import logging
        
            from ploghandler import PLogHandler, Lockf
        
            log = logging.getLogger("test")
            handler = PLogHandler(
                "/var/log/test.debug.log",
                maxBytes=1024 * 1024,
                backupCount=5,
                rotlock=Lockf("/var/log/test.debug.lock"))
        
            log.addHandler(handler)
            log.setLevel(logging.DEBUG)
        
            log.debug("test message")
        
Platform: posix
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Operating System :: POSIX
Classifier: Operating System :: Unix
Classifier: Programming Language :: Python :: 2
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: System :: Logging
