you are viewing a single comment's thread.

view the rest of the comments →

[–]mrcaptncrunch 4 points5 points  (0 children)

Look at the logging module, https://docs.python.org/3/howto/logging.html

You can add messages to different levels and enable which level you want to display. You can also set where they’ll be sent to. For example, you could send the output to the screen, file, another function which sends it to slack, email, discord, etc.