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

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page