Python Logging Basic
Print is a bad practice for logging. if you writing a small script it might be fine to user print but I recommend not to use print statement for logging purpose.
What to use for python Logging? . Python provide a standard module named “logging“.
Let start with Python Logging basic.
When you run the above code log will be generated.