{"id":20230039,"url":"https://github.com/lochbrunner/trace_event_handler","last_synced_at":"2025-09-10T05:10:42.977Z","repository":{"id":57476801,"uuid":"240692848","full_name":"lochbrunner/trace_event_handler","owner":"lochbrunner","description":"Python Logging Handler which dumps in the Trace Event Format supported by Chromium based browsers.","archived":false,"fork":false,"pushed_at":"2020-02-29T08:55:49.000Z","size":79,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-16T05:04:22.680Z","etag":null,"topics":["logging","trace-event-format"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lochbrunner.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-02-15T11:05:40.000Z","updated_at":"2023-02-16T15:15:42.000Z","dependencies_parsed_at":"2022-09-14T16:40:55.931Z","dependency_job_id":null,"html_url":"https://github.com/lochbrunner/trace_event_handler","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lochbrunner%2Ftrace_event_handler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lochbrunner%2Ftrace_event_handler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lochbrunner%2Ftrace_event_handler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lochbrunner%2Ftrace_event_handler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lochbrunner","download_url":"https://codeload.github.com/lochbrunner/trace_event_handler/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241671911,"owners_count":20000686,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["logging","trace-event-format"],"created_at":"2024-11-14T07:38:03.321Z","updated_at":"2025-03-03T13:26:26.462Z","avatar_url":"https://github.com/lochbrunner.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"![PyPI - Python Version](https://img.shields.io/pypi/pyversions/trace_event_handler)\n[![PyPI](https://img.shields.io/pypi/v/trace_event_handler)](https://pypi.org/project/trace-event-handler/)\n![PyPI - License](https://img.shields.io/pypi/l/trace_event_handler)\n[![PyPI - Downloads](https://img.shields.io/pypi/dm/trace_event_handler)](https://pypi.org/project/trace-event-handler/)\n![Python package](https://github.com/lochbrunner/trace_event_handler/workflows/Python%20package/badge.svg)\n\n# Logging Handler writing Trace Event Format\n\n\nThis logging writes the logs in the [Trace Event Format](https://docs.google.com/document/d/1CvAClvFfyA5R-PhYUmn5OOQtYMH4h6I0nSsKchNAySU/).\n\n![Screenshot](https://github.com/lochbrunner/trace_event_handler/blob/master/assets/screenshot.png)\n\n## Installation\n\n```zsh\npip install trace-event-handler\n```\n\n## Usage\n\n```python\nimport logging\nfrom trace_event_handler import TraceEventHandler\n\nhandler = TraceEventHandler()\nlogging.basicConfig(\n    handlers=[\n        logging.StreamHandler(None),\n        handler\n    ]\n)\n\n# Do your stuff and log it\n# ...\n\n# Dump the trace to file\nhandler.dump('trace.json')\n```\n\nOpen your Chromium based browser and navigate to `chrome://tracing`.\nClick on `Load` and select your dumped trace file.\n\nThe [example](https://github.com/lochbrunner/trace_event_handler/blob/master/example.py) leads to the trace seen in the figure above.\n\n## Publishing manually\n\n```zsh\npython3 setup.py sdist bdist_wheel\npython3 -m twine upload  dist/*\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flochbrunner%2Ftrace_event_handler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flochbrunner%2Ftrace_event_handler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flochbrunner%2Ftrace_event_handler/lists"}