https://docs.python.org/3/library/logging.html?highlight=logger This is quite straightforward to use, and allows easy toggling of debug/warning/error/info etc. levels of verbosity. Should be a straightforward task too.