{"id":18905493,"url":"https://github.com/utility-libraries/loggext-py","last_synced_at":"2026-03-04T21:30:19.805Z","repository":{"id":250441317,"uuid":"834456061","full_name":"utility-libraries/loggext-py","owner":"utility-libraries","description":"logging extensions for pythons logging library","archived":false,"fork":false,"pushed_at":"2024-10-01T17:12:27.000Z","size":734,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2024-12-31T10:43:38.811Z","etag":null,"topics":["logging","python3","python3-logging"],"latest_commit_sha":null,"homepage":"https://utility-libraries.github.io/loggext-py/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/utility-libraries.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-27T10:18:50.000Z","updated_at":"2024-10-01T17:12:00.000Z","dependencies_parsed_at":"2024-07-27T13:44:39.853Z","dependency_job_id":null,"html_url":"https://github.com/utility-libraries/loggext-py","commit_stats":null,"previous_names":["utility-libraries/loggext-py"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/utility-libraries%2Floggext-py","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/utility-libraries%2Floggext-py/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/utility-libraries%2Floggext-py/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/utility-libraries%2Floggext-py/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/utility-libraries","download_url":"https://codeload.github.com/utility-libraries/loggext-py/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239889026,"owners_count":19713702,"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","python3","python3-logging"],"created_at":"2024-11-08T09:12:11.348Z","updated_at":"2026-03-04T21:30:19.750Z","avatar_url":"https://github.com/utility-libraries.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![PyPI - Version](https://img.shields.io/pypi/v/loggext)\n](https://pypi.org/project/loggext/)\n\n# loggext-py\nlogging extensions for pythons logging library\n\nSee the [Documentation](https://utility-libraries.github.io/loggext-py/).\n\n\u003c!-- TOC --\u003e\n* [loggext-py](#loggext-py)\n  * [Installation](#installation)\n  * [Features](#features)\n  * [Usage](#usage)\n\u003c!-- TOC --\u003e\n\n## Installation\n\n```shell\npip install loggext\n```\n\n## Features\n\n- function-decorators for logging\n  - with support for asnyc-functions\n- additional logging-handlers\n  - ColoredConsoleHandler\n\n## Usage\n\n```python\nimport logging\nimport loggext\nfrom loggext.decorators import add_logging\n\n# only configures if not already configured\nif not loggext.logging_is_configured():\n    logging.basicConfig(\n        level=logging.NOTSET,\n        handlers=[\n            # adds colored output based on the level of each message\n            loggext.handlers.ColoredConsoleHandler()\n        ],\n    )\n\n@add_logging(\n  call=True,  # logs when the function is called\n  call_args=True,  # logs passed arguments of call\n  timeit=True,   # measure performance of the function\n  timeit_precision=2,  # number of units when formatting timing\n  result=True,  # log the result\n)  # note: exception-logging is always\ndef myfn(arg):\n    ...  # your code\n\nmyfn(\"value\")\n# DEBUG:root:\u003cfunction myfn at 0x7f06a6cc3400\u003e was called with ('value')\n# DEBUG:root:\u003cfunction myfn at 0x7f06a6cc3400\u003e returned None after 65μs+614ns\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Futility-libraries%2Floggext-py","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Futility-libraries%2Floggext-py","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Futility-libraries%2Floggext-py/lists"}