Skip to content
Asynchronous file handers for Python's logging
Python
Branch: master
Clone or download
Pull request Compare This branch is 3 commits ahead of CopterExpress:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
async_logging_handler
build/lib/async_logging_handler
files.txt
readme.md
setup.py

readme.md

async_logging_handler

Super-simple extensions for standard Python's logging.FileHandler, logging.handlers.RotatingFileHandler and logging.handlers.TimedRotatingFileHandler with asynchronous writing to file (utilizing standard Queue.Queue).

Support for MongoHandler has also been added.

Useful when using logging in programs, where long-time blocking for logging to file is not allowed.

Installation

pip install git+https://github.com/bartonip/python-async-logging-handler.git

Using

from async_logging_handler import AsyncFileHandler

# ...

async_handler = AsyncFileHandler(filename)
some_logger.addHandler(async_handler)
You can’t perform that action at this time.