logbind
Easily bind new fields into your logger instances.
# Original logger
logger = logging.getLogger('a')
logger.info('Hello')
logger = logbind.bind(logger, id=12345)
logger.info('Hello') # <- This logrecord has an extra field "id"
logger = logbind.bind(logger, abc=67890)
logger.info('Hello') # <- logrecord has two extra fields: "id" and "abc"
This feature will be most useful with a structured logging formatter, such as JSON. You could try logjson for example.
Metadata
Release files for logbind 2017.11.7
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 | |
|---|---|---|---|---|
| logbind-2017.11.7.tar.gz | 7.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| logbind-2017.11.7-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 21.5 kB
Release files / logbind-2017.11.7.tar.gz
| Download URL | logbind-2017.11.7.tar.gz |
|---|---|
| Size | 7.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1631e2b10138aa4eeece554cadcb738ca2f5be562ba7b3abd2c8cbacaa9bcaea
|
|
BLAKE2b-256 checksum How to use checksums |
289bfa87d1f36ee15882f05bd8a1f66f7d0ad117dade6819ef77eac09581c69e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / logbind-2017.11.7-py2.py3-none-any.whl
| Download URL | logbind-2017.11.7-py2.py3-none-any.whl |
|---|---|
| Size | 13.7 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
a57930b3d87f26cc803abd185f2bdfb6eb6be221a3cc8d1496549e289ffa9625
|
|
BLAKE2b-256 checksum How to use checksums |
1660f3e5c0dc5b1c5693d8571ef23344d7a85578fe6ebea15de537128b100034
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for logbind 2017.11.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.