Asynchronous logger¶
Logger with Asynchronous I/O.
- class mpacklog.async_logger.AsyncLogger(path)¶
Logger with Asynchronous I/O.
- async flush()¶
Flush messages from the logging queue to file.
- async put(message)¶
Put a new message in the logging queue.
- Parameters:
message – New message.
- async stop()¶
Break the loop of the write coroutine.
- async write(flush=False)¶
Continuously write messages from the logging queue to file.