Metadata-Version: 2.1
Name: utillc
Version: 0.4
Summary: a utility for smart logging
Home-page: UNKNOWN
Author: Clovis Heaulier
Author-email: clovis.heaulier@gmail.com
License: MIT
Keywords: logging fstring alternative
Platform: UNKNOWN
Description-Content-Type: text/markdown


## a utility for smart logging
Like this :
'''
#source code of test.py
from utillc import *
import utillc
import time

print(utillc.__file__);
print(utillc.__version__);
a=1;
EKOX(a)
EKO()
for i in range(5) :
    time.sleep(1)
    EKOX(i)

'''

# Output :

MINEKOLEVEL=0 python test.py

'''
test.py:8: [0040ms] a=1.
test.py:9: [0000ms] .
test.py:12: [1001ms] i=0.
test.py:12: [1001/1001ms] i=1.
test.py:12: [1001/1001ms] i=2.
test.py:12: [1001/1001ms] i=3.
test.py:12: [1002/1002ms] i=4.
'''

- format understood by emacs filename:linenumber
- time since last EKO
- time since last time when same line executed
- <variable name> = <value>

more compact than fstring and compatible back to python 2.7



