3 from datetime import datetime
7 def invocation_logged(func):
9 def wrapper(*args, **kwargs):
11 timestamp = now.strftime("%d-%b-%Y (%H:%M:%S.%f)")
12 print("%s(%s): Entered function" % (func.__name__, timestamp))
13 ret = func(*args, **kwargs)
15 timestamp = now.strftime("%d-%b-%Y (%H:%M:%S.%f)")
16 print("%s(%s): Exited function" % (func.__name__, timestamp))