Skip to main content

logging to structured logging

Project description

l2sl

What is this?

l2sl funnels log records of third-party tools into your structlog pipeline. In addition, l2sl converts the text based log records into a structured representation.

Why do I need it?

You need l2sl if

  • you are using structlog as the logging library in your application,
  • you depend on third-party libraries, e.g. uvicorn or httpx, that use the logging module from the standard library for logging, and
  • you want the log records from the third-party libraries processed by the same structlog pipeline as your own log records.

How do I get started?

In the most minimal setup, you only need to do add one thing to your logging setup, preferably after the structlog.configure() call:

import l2sl

l2sl.configure_stdlib_log_forwarding()

How do I learn more?

Please have a look at the documentation.

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

l2sl-0.4.1.tar.gz (66.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

l2sl-0.4.1-py3-none-any.whl (13.1 kB view details)

Uploaded Python 3

File details

Details for the file l2sl-0.4.1.tar.gz.

File metadata

  • Download URL: l2sl-0.4.1.tar.gz
  • Upload date:
  • Size: 66.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for l2sl-0.4.1.tar.gz
Algorithm Hash digest
SHA256 7a8333789bad25df13672e35af211e58d8830fda7569bd2bf963694a62291f75
MD5 16ed750ecd2a7c57adfc31ca3223194d
BLAKE2b-256 8b24b07db4a5388d5fbdc697bcbc4ff52c6274078c21b14cd0b3557a98f97e6a

See more details on using hashes here.

File details

Details for the file l2sl-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: l2sl-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 13.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for l2sl-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b17a35b228f908a2bbe94424884afc3cc793244aed00f7d8e5cc6176ecc2dbee
MD5 8b01b425a4f123fb1bbb1c3f8ed02462
BLAKE2b-256 fbb9a2f11f5cbd4a75c7795951db8d883fbceeb50a14aff07eb62a4214a49f56

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page