Introduction - RobertoPrevato/rolog GitHub Wiki
rolog
is a logging API using async/await for log methods. In other words, an async friendly logging abstraction layer.
Features:
- logging classes using
async/await
for logs - handling of six logging levels, like in built-in logging module
- built-in support for flushing of log records (e.g. making a web request, or writing to a database, every n records)
- flushing supports max retries, configurable delays, number of attempts, and fallback target in case of failure
- support for several targets per logger
- can be used to asynchronously log to different destinations (for example, web api integration, DBMS, etc.)
- logged records support any kind of desired arguments and data structures
- completely abstracted from destination of log entries
- can be used with built-in
logging
module, for sync logging and to use built-in logging classes - integrated with rodi dependency injection library, to support injection of loggers by activated class name
Installation
pip install rolog