Technically, this is also the βanswerβ because it can βsolveβ the problem. BUT I definitely don't like it. This is not intuitive, and I lost 2+ hours because of this.
Before:
import logging logger = logging.getLogger('foo') logger.setLevel(logging.INFO) logger.info('You can not see me')
After:
import logging logging.debug('invisible magic')
PS: Comparing it with the current selected answer and @ Vinay-Sip's explanation, I can understand why. But still, I would like this to not work.
source share