When you are programming, it is vitally important to know how to log. Logging can be used for debugging purposes and as a way of tracking the progress of your program. This article will show you some basic logging techniques that will help you get started with this technique. – Get the logfile ready. This should be a variable for holding the name of your file, declared outside any function that you are using in your code (or if inside a function it needs to be local). – Use the `logging` module. It is important to use an appropriate logging level and specify where to send logs: console or file folder. The default log levels are critical, error, warning, info or debug – these correspond respectively with maximum severity order from top down. You can set different levels by assigning them as arguments when calling logging functions like `critical`, `error`, etc., but remember that this will overwrite whatever was there before being assigned new ones. If no location was specified then errors will just


Please enter your comment!
Please enter your name here