larzlog
Structured logging — readable, level-filtered logs (text or JSON) for real apps.
When your app runs somewhere you can't see, logs are your eyes. larzlog is a small
structured logger: levels you can filter, key=value context fields, output as
human-readable text or machine-readable JSON, and bind to attach context (like a
request id) to every line. Everything is injectable (output, clock) so it's easy to
test. Zero dependencies.
Install
pip install larzlog
Use
from larzlog import Logger
log = Logger("api", level="INFO")
log.info("user signed up", user_id=42, plan="pro")
# INFO api: user signed up user_id=42 plan=pro
req = log.bind(request_id="abc123")
req.warning("slow response", ms=812)
Learn to code with Larz
Part of the learn-to-code toolkit in the Larz stack — see the Learn to Code platform. A building block for running apps in production.
Tests
python -m unittest discover -s tests -v # 5 tests
License
MIT (c) larz-scripter
Metadata
Release files for larzlog 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| larzlog-0.1.0.tar.gz | 7.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| larzlog-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.9 kB
Release files / larzlog-0.1.0.tar.gz
| Download URL | larzlog-0.1.0.tar.gz |
|---|---|
| Size | 7.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bb3f7461bbea219011695f214477e141306a0a7f261980d5c90bf2fb7ae7adfa
|
|
BLAKE2b-256 checksum How to use checksums |
7329fad030b590ce7fbbca44139d7bd76a7fca43a8174e9ebd18c37788feb4f2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.13
|
Release files / larzlog-0.1.0-py3-none-any.whl
| Download URL | larzlog-0.1.0-py3-none-any.whl |
|---|---|
| Size | 8.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
81dabc0fe085a069ed528ce9453d36f2a1afbe4fd76b24b3f8a8bd000202797e
|
|
BLAKE2b-256 checksum How to use checksums |
b90823ac3181913947f1514452a1e43f1a0421404636184319671bd86759cf36
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.13
|
Security for larzlog 0.1.0
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.