title: How to write to a file, using the logging Python module?
body: <p>How can I use the <a href="https://docs.python.org/3.7/library/logging.html#module-logging" rel="noreferrer">logging</a> module in Python to write to a file? Every time I try to use it, it just prints out the message.</p>