{"library":"logdecorator","title":"LogDecorator","description":"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).","language":"python","status":"active","last_verified":"Fri May 01","install":{"commands":["pip install logdecorator"],"cli":null},"imports":["from logdecorator import log_decorator","from logdecorator import log_decorator, log_level"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"from logdecorator import log_decorator, log_level\nimport logging\n\nlogging.basicConfig(level=logging.INFO)\n\n@log_decorator(log_level.INFO)\ndef my_function(a, b):\n    return a + b\n\nmy_function(1, 2)","lang":"python","description":"Basic usage: decorate a function to log its calls with INFO level.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}