A simple function logger for Python
Project description
GGLogger
A function logger for Python
See examples under Examples/Example.py
Supported return types:
- Int
- Float
- String
- List
- Dict
- Tuple
- Or use combine to combine 2 or more types
Functions
Print Function
RIGHT NOW PRINT ONLY WORKS ON COMBINED FUNCTIONS! Use:
@GG.Print
@GG.Combine (int, str, list)
def Test ():
if 0:
return [0]
elif 1:
return str (0)
else:
return int (0)
# Output result:
# [0]
Log Function
Use:
@GG.Int
@GG.Log ()
def Test ():
return 1
# 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
# ----------------------
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
GGLogger-1.0.0.tar.gz
(2.4 kB
view hashes)