I am fairly new in python and starting to get into the logging module. I would like to have the message logged into a log file and outputting to the console. The code below prin
You just need to add another handler, like a logging.FileHandler
logging.FileHandler
fh = logging.FileHandler(r'/path/to/log.txt') logger.addHandler(fh)