Thank you for the useful post. Just a quick correction.
Running the sample code under Logging to a File, the logger is created with a default level of WARNING, so the INFO log record is actually not written to the log file. To include it in the log file, set the logger level to INFO as well:
logger = logging.getLogger(__name__)
Thanks for catching that, I'll leave a note in the article!
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.