Skip to main content

Documentation Status Coverage Status Build Status

Pysllo

Make your python logging more structured and easy to aggregate using all features of pysllo. Pysllo is set of useful python logging extenders that make possible saving logs into StackLight with possibility of flow tracking, data binding and raising all logs if error occurs.

For more information go to documentation on ReadTheDocs.

Quick start

pip install pysllo

Features

  • StructuredLogger

  • PropagationLogger

  • TrackingLogger

  • JsonFormatter

  • ElasticSearchUDPHandler

Example

from pysllo.handlers import ElasticSearchUDPHandler
from pysllo.formatters import JsonFormatter
from pysllo.utils import LoggersFactory

# configuration
host, port, limit = 'localhost', 9000
handler = ElasticSearchUDPHandler([(host, port)])
formatter = JsonFormatter()
handler.setFormatter(formatter)
MixedLogger = LoggersFactory.make(
        tracking_logger=True,
        propagation_logger=True,
        structured_logger=True
    )
logger = MixedLogger('test')
logger.addHandler(handler)

# examlpe usage
msg = "TEST"
logger.bind(ip='127.0.0.1')
logger.debug(msg, user=request.user)

Metadata

Release files for pysllo 0.1

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

Source distribution (sdist)

Source distribution for pysllo 0.1
File Size Uploaded Provenance
pysllo-0.1.tar.gz 7.7 kB Without provenance Details

Release files / pysllo-0.1.tar.gz

Download URL pysllo-0.1.tar.gz
Size 7.7 kB
Tags Source
SHA-256 checksum
How to use checksums
6188044739e361fddc60d8b0924fdf125c3a21455844d099870214601bbe78ee
BLAKE2b-256 checksum
How to use checksums
2f6a0fef289c0b297d12d9926c6dbd835965e1668fe735470ce2b250cc5e8acb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for pysllo 0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

0.1 This release

1 release file No provenance

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