Skip to main content

PyPI - Python Version PyPI PyPI - License PyPI - Downloads Python package

Logging Handler writing Trace Event Format

This logging writes the logs in the Trace Event Format.

Screenshot

Installation

pip install trace-event-handler

Usage

import logging
from trace_event_handler import TraceEventHandler

handler = TraceEventHandler()
logging.basicConfig(
    handlers=[
        logging.StreamHandler(None),
        handler
    ]
)

# Do your stuff and log it
# ...

# Dump the trace to file
handler.dump('trace.json')

Open your Chromium based browser and navigate to chrome://tracing. Click on Load and select your dumped trace file.

The example leads to the trace seen in the figure above.

Publishing manually

python3 setup.py sdist bdist_wheel
python3 -m twine upload  dist/*

Metadata

Release files for trace-event-handler 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for trace-event-handler 0.0.4
File Size Uploaded Provenance Actions
trace_event_handler-0.0.4.tar.gz 3.5 kB Without provenance Details for trace_event_handler-0.0.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for trace-event-handler 0.0.4
File Interpreter ABI Platform Actions
trace_event_handler-0.0.4-py3-none-any.whl Python 3 none any Details for trace_event_handler-0.0.4-py3-none-any.whl

Total release size: 8.3 kB

Release files / trace_event_handler-0.0.4.tar.gz

Download URL trace_event_handler-0.0.4.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
2b5c29f128213daea0f159a579270a59da32eba90d0a5c1814a8b0ac920549cc
BLAKE2b-256 checksum
How to use checksums
48e5d3cf9bccac9614cfd26a4e193f973ed90f89bb369330d095bb5322b53757
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.5

Release files / trace_event_handler-0.0.4-py3-none-any.whl

Download URL trace_event_handler-0.0.4-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fc67665a95ea89ec99fd0150ae6bbfe5cf81e9e34df4289cca05f70b6764d72c
BLAKE2b-256 checksum
How to use checksums
1ebc8732ef3881a4826fd4f76827ff6f9d5970e3d6244f376d76454e71d270dc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.5

Security for trace-event-handler 0.0.4

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