import logging logger = logging.getLogger(__name__) def test2(): logger.info('Ran log2.py test2()') return 1