{"categories":[{"label":"Software Development","url":"https://skillfed.io/packages/category/software-development/16"},{"label":"Libraries","url":"https://skillfed.io/packages/category/software-development-libraries/9"},{"label":"Logging","url":"https://skillfed.io/packages/category/system-logging"}],"enrichment":{"capability":"Logdecorator provides Python decorators to add logging to functions without cluttering business logic\u2014log at function start, end, or on errors using simple decorator syntax.","skillfed_tags":["logging","decorators","async-support"],"use_cases":["Wrap API endpoint handlers to log incoming requests and outgoing responses without polluting handler code.","Decorate data processing functions to track execution flow and timing across a data pipeline.","Add error logging to utility functions that should fail loudly but keep their implementation clean.","Instrument async tasks to log lifecycle events (start, completion, failure) in concurrent applications.","Create audit trails for sensitive operations by logging arguments and results at function boundaries."],"what_it_does":"Logdecorator is a lightweight decorator library that attaches logging to Python functions without embedding log statements in business logic. It provides four main decorators\u2014log_on_start, log_on_end, log_on_error, and log_exception\u2014that trigger at corresponding points in function execution, plus async variants for coroutines. Messages support Python format strings with access to function arguments, return values, and exception objects, keeping code readable while maintaining comprehensive logging coverage.\n\nThe library targets developers who want logging instrumentation without the visual noise of try-except blocks or logger calls scattered through their code. With zero runtime dependencies and a simple decorator-based API, it integrates into existing Python projects with minimal friction. It requires Python 3.10 or later and is maintained under a permissive MIT license.","worth_installing":"Yes, if you want a lightweight, zero-dependency way to add structured logging to functions without embedding log statements in business logic. The dormant maintenance status (last release 545 days ago) is a minor concern for a stable utility library, but verify that async decorator support and format-string behavior match your logging patterns before committing to it in a new project."},"id":"logdecorator","links":{"html":"https://skillfed.io/packages/logdecorator","md":"https://skillfed.io/packages/logdecorator.md","pypi":"https://pypi.org/project/logdecorator/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2025-02-15","license_spdx":null,"license_treatment":"permissive","name":"logdecorator","python_support":"supports_current","summary":"Move logging code out of your business logic with decorators"},"popularity":{"monthly_downloads":103146,"position":12827,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"2.5"}
