Skip to content

CopterExpress/python-async-logging-handler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

0d5d2f7 · Jul 22, 2017

History

6 Commits
Jun 22, 2017
Jul 22, 2017
Jun 22, 2017

Repository files navigation

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).

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

Installation

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

Using

from async_logging_handler import AsyncFileHandler

# ...

async_handler = AsyncFileHandler(filename)
some_logger.addHandler(async_handler)

About

Asynchronous file handers for Python's logging

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages