Skip to main content

Logging for OVH Logs Data Platform

Latest Version Latest version Documentation Status

A python logging bundle to send logs using GELF on the OVH Logs Data Platform.

Quickstart

First, install logging-ldp using pip:

pip install -U logging-ldp

The following example shows how to send log in Graylog TCP input

import logging
from logging_ldp.formatters import LDPGELFFormatter
from logging_ldp.handlers import LDPGELFTCPSocketHandler

logger = logging.getLogger("ldp")
logger.setLevel(logging.DEBUG)

handler = LDPGELFTCPSocketHandler(hostname="gra1.logs.ovh.com")
handler.setFormatter(LDPGELFFormatter(token="XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"))
logger.addHandler(handler)
logger.debug("hello !")

Requirements

  • Python >= 3.3

License

Licensed under BSD 3-Clause License or https://opensource.org/licenses/BSD-3-Clause.

Metadata

Release files for logging-ldp 0.0.7

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

Source distribution (sdist)

Source distribution for logging-ldp 0.0.7
File Size Uploaded Provenance Actions
logging-ldp-0.0.7.tar.gz 6.6 kB Without provenance Details for logging-ldp-0.0.7.tar.gz

Release files / logging-ldp-0.0.7.tar.gz

Download URL logging-ldp-0.0.7.tar.gz
Size 6.6 kB
Tags Source
SHA-256 checksum
How to use checksums
ee6f8a2565a77e703e2bcc63b63ec61311588adbef9ae7e186b643dbfb7fc766
BLAKE2b-256 checksum
How to use checksums
0a6df0653145b5e47718f95e236f3ca3f6845218536254ca0b329749af8156aa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.7.17

Security for logging-ldp 0.0.7

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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