The basics of logging in Python programs