Skip to content

aviramha/aiologstash2

Repository files navigation

aiologstash2

image

image

image

asyncio logging handler for logstash.

Installation

pip install aiologstash2

Usage

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)

Thanks

This is an actively maintained fork of aio-libs' aiologstash

The library was donated by Ocean S.A.

Thanks to the company for contribution.