Currently, I have osmething like this in all of my classes:
# Import logging to log information
import logging
# Set up the logger
LOG_FILENAME = 'log.txt'
logging.basicConfig(filename=LOG_FILENAME,level=logging.DEBUG)
This works well, and I get the output I want, but I would really like to have all this sort of information in one place, and be able to just do something like import myLogger
and then start logging, and then hopefully be able to just go into that file and turn off logging when I need an extra performance boost.
Thanks in advance