Skip to main content

Python AsyncIO Logstash Logger

Project description


python asyncio logstash logger adapter


pip install aio-logstash


import logging
import asyncio
from aio_logstash.handler import TCPHandler

async def main():
    handler = TCPHandler()
    await handler.connect('', 5000)
    logger = logging.getLogger(__name__)
    logger.addHandler(handler)'test', extra={'foo': 'bar'})

    await handler.exit()

if __name__ == '__main__':

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aio-logstash-0.1.0.tar.gz (4.5 kB view hashes)

Uploaded source

Built Distribution

aio_logstash-0.1.0-py3-none-any.whl (9.5 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page