Python AsyncIO Logstash Logger
Project description
aio-logstash
python asyncio logstash logger adapter
Installation
pip install aio-logstash
Usage
import logging
import asyncio
from aio_logstash.handler import TCPHandler
async def main():
handler = TCPHandler()
await handler.connect('127.0.0.1', 5000)
logger = logging.getLogger(__name__)
logger.setLevel(logging.INFO)
logger.addHandler(handler)
logger.info('test', extra={'foo': 'bar'})
await handler.exit()
if __name__ == '__main__':
asyncio.run(main())
Project details
Release history Release notifications | RSS feed
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 details)
Built Distribution
File details
Details for the file aio-logstash-0.1.0.tar.gz
.
File metadata
- Download URL: aio-logstash-0.1.0.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.22.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6596162244f791a82397ca6ecbdd3991fa712025574f408b51adb3a6e94942d8 |
|
MD5 | 80a8214d476563f1e53d16bbf238f4ab |
|
BLAKE2b-256 | 66e8307ebcce057db32a6860c80f5426e97eff55b61782ebbbf1b165ea5abf3e |
File details
Details for the file aio_logstash-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: aio_logstash-0.1.0-py3-none-any.whl
- Upload date:
- Size: 9.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.22.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 80ce22cce5b93abb710396351f764d19fd4d743de62ea0a908455b95f27b0fb3 |
|
MD5 | 182daf2f2f1f91ac72fe1777681ca2c0 |
|
BLAKE2b-256 | ec0a8c363c591281464113dc6c4177ed1f39ab09251b31784dd81c91143afb7b |