Skip to content

aio-libs/aiologstash

Repository files navigation

aiologstash

https://travis-ci.org/aio-libs/aiologstash.svg?branch=master

asyncio logging handler for logstash.

Installation

pip install aiologstash

Usage

import logging
from aiologstash 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

The library was donated by Ocean S.A.

Thanks to the company for contribution.