To change the logging level of a dependent package that properly names its logger log = logging.getLogger(__name__)
is easy: logging.getLogger("name.of.package").setLevel(logging.WARNING)
.
But if the 3rd party package doesn't name their logger and just logs messages using logging.info("A super loud annoying message!")
, how do I change that level? Adding the getLogger(...).setLevel(..)
doesn't seem to work because the logger isn't named. Is it possible to change the logging level output of just one package without changing the level for the entire logging module?