Concurrent logging handler (replacement for RotatingFileHandler)
Project description
The ConcurrentRotatingFileHandler class is a drop-in replacement for Python’s standard log handler RotateFileHandler. This module uses file locking so that multiple processes can concurrently log to a single file without dropping or clobbering log records. This module provides a file rotation scheme like RotatingFileHanler, except that 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 logs are lost).
This module’s 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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for ConcurrentLogHandler-0.7.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ced6344ece750ae6e8112f01e08e3621956d3fee235470defdd87d1dcb2aca7 |
|
MD5 | a6e688dabfc9a83b68beeb0e8c160fe4 |
|
BLAKE2b-256 | f585b558d3f8eb68d540eb52f145f0a7c2155fb19da30e833a4369a80511e254 |