When debugging a python function, I set up my logging like this:
import logging logger_name = \'test.log\' log_format = "%(funcName)s:%(lineno)d -%(message)s