记录包装的函数/方法的装饰器。
iologger的Python项目详细描述
记录包装的函数/方法的装饰器。
The following are logged:
- name of the function called
- arg(s) passed for the function called (if any)
- kwarg(s) passed for the function called (if any)
- execution time of the function called (in seconds)
- also catches and logs any exceptions raised gracefully.