StructLogger

Uses structlog to create two loggers, a stdout logger with key-value args and optional colour, and a file logger in JSON format with log-rotation.
Documentation
StructLogger’s documentation can be found at https://structlogger.readthedocs.io
Installing StructLogger
StructLogger can be installed from Pypi using pip:
pip install structlogger
Example
StructLogger defines a set of standard parameters that should get you going quickly and easily. Settings are retrofitted to the standard logging module to ensure any of your dependencies will adhere to the same logging format.
import structlog
from structlogger import configure_logger, __version__
configure_logger()
log = structlog.getLogger()
log.info('Welcome to structlogger', version=__version__)
Metadata
Release files for structlogger 0.1.5
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 | Actions |
|---|---|---|---|---|
| structlogger-0.1.5.tar.gz | 3.3 kB | Without provenance | Details for structlogger-0.1.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| structlogger-0.1.5-py3-none-any.whl | Python 3 | none | any | Details for structlogger-0.1.5-py3-none-any.whl |
Total release size: 7.3 kB
Release files / structlogger-0.1.5.tar.gz
| Download URL | structlogger-0.1.5.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
129385572c5f6d8b75920fbd72c815ee0dba2e7e3b1b3a7933ac437b86c636e2
|
|
BLAKE2b-256 checksum How to use checksums |
f24ff3008b40ebf6e483ccae06b9deee94d293dca8a6c4a165ee71ac0e6afe67
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.0 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6
|
Release files / structlogger-0.1.5-py3-none-any.whl
| Download URL | structlogger-0.1.5-py3-none-any.whl |
|---|---|
| Size | 4.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f46edf422ab819cf9f1bbdb7181963b3775b9e45fc03d175d1af453664bc16d1
|
|
BLAKE2b-256 checksum How to use checksums |
f0bd92b2bc44657d7cf1817747ab98b1d50b14591a2e95e7dbb27c79d4c86201
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.0 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6
|
Security for structlogger 0.1.5
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.