Skip to main content

Python Logging Handler which dumps in the Trace Event Format supported by Chromium based browsers.

Project description

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.



pip install trace-event-handler


import logging
from trace_event_handler import TraceEventHandler

handler = TraceEventHandler()

# Do your stuff and log it
# ...

# Dump the trace to file

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 sdist bdist_wheel
python3 -m twine upload  dist/*

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for trace-event-handler, version 0.0.4
Filename, size File type Python version Upload date Hashes
Filename, size trace_event_handler-0.0.4-py3-none-any.whl (4.8 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size trace_event_handler-0.0.4.tar.gz (3.5 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page