Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

aioloki

An asynchronous python logging handler to stream logs to Grafana Loki

Installation

pip install aioloki

Usage

import asyncio
import logging
import aiohttp
import aioloki

async def main():
    session = aiohttp.ClientSession()
    handler = aioloki.AioLokiHandler(
        'http://localhost:3100',
        tags={'cluser': '1'},
        session=session
    )
    log = logging.getLogger('test-logging')
    log.addHandler(handler)
    log.info(
        'Setup aioloki successfully',
        extra={'tags': {'function': 'main'}}
    )
    await session.close()

asyncio.run(main())

Metadata

Release files for aioloki 0.0.1a1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aioloki 0.0.1a1
File Size Uploaded
aioloki-0.0.1a1.tar.gz 15.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for aioloki 0.0.1a1
File Interpreter ABI Platform
aioloki-0.0.1a1-py3-none-any.whl Python 3 none any Details

Total release size: 31.7 kB

Release files / aioloki-0.0.1a1.tar.gz

Download URL aioloki-0.0.1a1.tar.gz
Size 15.4 kB
Tags Source
SHA-256 checksum
How to use checksums
ce787a2b029be56d2b581caf0c6bd37f01b2110843bce475b49166c894be8747
BLAKE2b-256 checksum
How to use checksums
8c94f6d4df17e7a7d53849cfdb048ef470b00d40e57423e354a27f733467792a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.10

Release files / aioloki-0.0.1a1-py3-none-any.whl

Download URL aioloki-0.0.1a1-py3-none-any.whl
Size 16.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
913e620c435505c922ae89e588e47e19bf0f5b4ea506b4dd70806a71831d38b4
BLAKE2b-256 checksum
How to use checksums
8463e440021880ed6b8089146393271b32520e2c2c36ccac5ba74a855bf70c4c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.10

Release history Release notifications | RSS feed

This release

0.0.1a1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page