20170731-1515 - 20170731-1530: 15 minutes
Here we briefly want to check that we can set logging at the package level and have the same logging configuration apply to its subpackages.
import logging
logging.getLogger('whee').setLevel(logging.DEBUG)
logging.basicConfig()
log = logging.getLogger('whee')
log.debug('made you look')
log = logging.getLogger('whee.plus')
log.debug('made you look again')
In conclusion, we can safely configure logging at the package level and use logging.getLogger(__name__)
in each subpackage.