Move logging code out of your business logic with decorators. Lightweight library (v2.5) that provides @log_decorator and related decorators for automatic logging of function calls, arguments, results, and exceptions. Requires Python >=3.10. Stable release cadence (sporadic).
pip install logdecoratorVerified import paths — ran on the pinned version, not inferred.
Basic usage: decorate a function to log its calls with INFO level.
Use `from logdecorator import log_decorator`.
Use `@log_decorator(log_level.ERROR, exception_only=True)` instead of `@log_exception`.
Use `log_level.INFO` instead of `'INFO'`.
No dependency data recorded yet.