I am having some problem with the python logging module. In the following I create a "logger" which I will use later in my code. Here, I am using only the FileHandler but I see that when I log some message to this logger they also appear on the console. Printing to console makes my whole program slow.
Following is the code:
logger = logging.getLogger("Design")
logger.setLevel(logging.DEBUG)
#create a file handler which logs all INFO, DEBUG, ERROR messages
fh = logging.FileHandler('Design.log', mode='w')
fmt = logging.Formatter('[%(levelname)s] %(message)s')
fh.setFormatter(fmt)
#adding the handlers to logger
logger.addHandler(fh)