You are here: Home / LBN / Up2date / Core Linux / BastionLinux 13 / python-ConcurrentLogHandler-0.9.1-1.lbn13.noarch

python-ConcurrentLogHandler-0.9.1-1.lbn13.noarch

Package Attributes
RPM  python-ConcurrentLogHandler-0.9.1-1.lbn13.noarch.rpm Architecture  noarch Size  46963 Created  2017/08/04 11:09:35 UTC
Package Specification
Summary Concurrent logging handler (drop-in replacement for RotatingFileHandler) Python 2.6+
Group Application/Internet
License ZPL
Home Page https://pypi.python.org/packages/source/C/ConcurrentLogHandler/ConcurrentLogHandler-0.9.1.tar.gz
Description

Overview

This module provides an additional log handler for Python's standard logging package (PEP 282). This handler will write log events to log file which is rotated when the log file reaches a certain size. Multiple processes can safely write to the same log file concurrently. Details

The ConcurrentRotatingFileHandler class is a drop-in replacement for Python's standard log handler RotatingFileHandler. This module uses file locking so that multiple processes can concurrently log to a single file without dropping or clobbering log events. This module provides a file rotation scheme like with RotatingFileHanler. Extra care is taken to ensure that logs can be safely rotated before the rotation process is started. (This module works around the file rename issue with RotatingFileHandler on Windows, where a rotation failure means that all subsequent log events are dropped).

This module attempts to preserve log records at all cost. This means that log files will grow larger than the specified maximum (rotation) size. So if disk space is tight, you may want to stick with RotatingFileHandler, which will strictly adhere to the maximum file size.

If you have multiple instances of a script (or multiple scripts) all running at the same time and writing to the same log file, then all of the scripts should be using ConcurrentRotatingFileHandler. You should not attempt to mix and match RotatingFileHandler and ConcurrentRotatingFileHandler.

This package bundles portalocker to deal with file locking. Please be aware that portalocker only supports Unix (posix) an NT platforms at this time, and therefore this package only supports those platforms as well.

Requires
rpmlib(PayloadFilesHavePrefix)  
rpmlib(FileDigests)  
/bin/sh  
rpmlib(CompressedFileNames)  
rpmlib(PartialHardlinkSets)  
rpmlib(PayloadIsXz)  
Provides
python-ConcurrentLogHandler

Document Actions