Harsh
Harsh

Reputation: 11

How to make class or function to create log file and write in Python?

I am new learner to Python, so I am not getting how to make common function for creating log file to record each and every details during testing...

Upvotes: 1

Views: 182

Answers (1)

Tim Pietzcker
Tim Pietzcker

Reputation: 336378

Try the logging module. If that's overkill for you, why not insert print statements/functions in relevant places of your code and print the variables you're interested in?

Upvotes: 2

Related Questions