I\'m using the Python logging module, and would like to disable log messages printed by the third party modules that I import. For example, I\'m using something like the fo
@Bakuriu quite elegantly explains the function. Conversely, you can use the getLogger()
method to retrieve and reconfigure/disable the unwanted loggers.
I also wanted to add the logging.fileConfig()
method accepts a parameter called disable_existing_loggers
which will disable any loggers previously defined (i.e., in imported modules).