I believe log levels work globally in Python if you set them with logging.basicConfig.
The simplest answer is probably (as jake77 suggested alreadyas jake77 suggested already):
logger = logging.getLogger(__name__) Then set the level on that logger specifically:
logger.setLevel(logging.DEBUG) # or whichever There's a good article on best practices with logging here. It may or may not be relevant to your case, but the best piece of advice it gives is that
[...] libraries have no business configuring logging levels, formatters, or handlers.