Skip to main content

Trustpilot Logging

Build Status Latest Version Python Support

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:

  1. Make pr with
    1. your changes
    2. good linting: black . should be happy
    3. bump semantic version
  2. get pr reviewed
  3. merge to master
  4. pull master locally and run poetry publish with 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)

Source distribution for trustpilot-json-logging 1.0.12
File Size Uploaded Provenance
trustpilot-json-logging-1.0.12.tar.gz 5.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for trustpilot-json-logging 1.0.12
File Interpreter ABI Platform
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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page