一个简单的python函数记录器
GGLogger的Python项目详细描述
gglogger
python的函数记录器
参见Examples/Example.py
支持的返回类型:
- 内景
- 浮动
- 字符串
- 列表
- dict
- 元组
- 或使用“合并”合并两种或更多类型
功能
打印功能
现在只打印组合函数! 使用:
@GG.Print@GG.Combine(int,str,list)defTest():if0:return[0]elif1:returnstr(0)else:returnint(0)# Output result:# [0]
日志函数
使用:
@GG.Int@GG.Log()defTest():return1# Output result:# ----- Log Result -----# Executed: Test# Result: 1# Result Type: str# Execution Time: 0.0 seconds# Arg Count: 0# File Path: C:\Path\To\File.py# Start Line: 1# ----------------------