1 from datetime import datetime
4 def invokation_logged(func):
6 def wrapper(*args, **kwargs):
8 timestamp = now.strftime("%d-%b-%Y (%H:%M:%S.%f)")
9 print("%s(%s): Entered function" % (func.__name__, timestamp))
10 ret = func(*args, **kwargs)
12 timestamp = now.strftime("%d-%b-%Y (%H:%M:%S.%f)")
13 print("%s(%s): Exited function" % (func.__name__, timestamp))