How can I use the logging module in Python to write to a file? Every time I try to use it, it just prints out the message.
import sys import logging from util import reducer_logfile logging.basicConfig(filename=reducer_logfile, format='%(message)s', level=logging.INFO, filemode='w')