20 Jul
2015
20 Jul
'15
9:57 a.m.
I’m basically doing this:
logger = logging.getLogger() logger.setLevel(logging.DEBUG)
My understanding is that this should get an instance of the root logger, and set the level of all children, but this doesnt seem to be happening.
It's confusing, but I think that child propagation only works if it is set on the parent before the child is ever requested. So, if the child is instantiated at import time in some module and you're setting the level later than that, you won't magically update the child.
--Dan