1 2 3 4 5 6
import logging logger = logging.getLogger(__name__) def foo(): logger.debug("message") return 1