asyncio logging handler for logstash.
pip install aiologstash2
import logging
from aiologstash2 import create_tcp_handler
async def init_logger():
handler = await create_tcp_handler('127.0.0.1', 5000)
root = logging.getLogger()
root.setLevel(logging.DEBUG)
root.addHandler(handler)
This is an actively maintained fork of aio-libs' aiologstash
The library was donated by Ocean S.A.
Thanks to the company for contribution.