I have a python script containing a function to sum of two number.I want to create a logfile which logs everything during execution.How should I do that?Could you please explain with some example?
def sum(a,b):
retrun a + b
a = sum(10,20)
I have a python script containing a function to sum of two number.I want to create a logfile which logs everything during execution.How should I do that?Could you please explain with some example?
def sum(a,b):
retrun a + b
a = sum(10,20)
You can create a simple log file by,