Trustpilot Logging
Opinionated json logging module used by Trustpilot, ( based on python-json-logger by madzak )
Installation
Install the package from PyPI using pip:
pip install trustpilot-logging
Usage
import trustpilot_json_logging
logging = trustpilot_json_logging.setup_logging()
logging.warning("i'm alive")
# outputs
# {"message": "i'm alive", "Module": "root", "Severity": "INFO"}
Advanced Usage
import trustpilot_json_logging
logging = trustpilot_json_logging.setup_logging("INFO", sys.stderr, ignore={"elasticsearch":"WARNING"})
logging.info({
"message": "i just arrived",
"age": 32,
"location": "north pole"
})
# outputs
# {"message": "i just arrived", "age": 32, "location": "north pole", "Module": "root", "Severity": "INFO"}
Publish new version
To publish a new version:
- Make pr with
- your changes
- good linting:
black .should be happy - bump semantic version
- get pr reviewed
- merge to master
- pull master locally and run
poetry publishwith the TP pypi credentials
Metadata
Release files for trustpilot-json-logging 1.0.12
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 | |
|---|---|---|---|---|
| trustpilot-json-logging-1.0.12.tar.gz | 5.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| trustpilot_json_logging-1.0.12-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.3 kB
Release files / trustpilot-json-logging-1.0.12.tar.gz
| Download URL | trustpilot-json-logging-1.0.12.tar.gz |
|---|---|
| Size | 5.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3a7be356fbb6d51df380d230a3abf83c9ad260b492347466508001096e33f5b6
|
|
BLAKE2b-256 checksum How to use checksums |
f99d94a4d4efb9de8464f638898414108428d5edc9b44c25e7feb6ed06cc184c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.10 CPython/3.8.1 Darwin/19.2.0
|
Release files / trustpilot_json_logging-1.0.12-py3-none-any.whl
| Download URL | trustpilot_json_logging-1.0.12-py3-none-any.whl |
|---|---|
| Size | 6.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6701182e7361d62c0e243e829e3676c8e131916f6c055736564104ab78daecfa
|
|
BLAKE2b-256 checksum How to use checksums |
077b4fbd207f438024292e2be14767d48b9161f77ff99aa8dba42b06f54c64f5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.10 CPython/3.8.1 Darwin/19.2.0
|
Security for trustpilot-json-logging 1.0.12
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.