Re: Create Logging module
*args, **kwargs): > t1 = time.time() > result = func_to_log(*args, **kwargs) > t2 = time.time() - t1 > print('{} ran in {} sec'.format(func_to_log.__name__, t2)) > return result > > --- end here--- > > > following is my m
Create Logging module
return result --- end here--- following is my main app -- start here-- from loggingme import logme def say_hello(name, age): print('Hello {}, I am {}'.format(name, age)) #say_hello=logme(say_hello('Sinardy')) @logme say_hello('Tonny', 8) --- end here--- I h