FORMAT = '[%(filename)s:%(lineno)s - %(funcName)20s() ] %(message)s'
logging.basicConfig(format=FORMAT)
logger.setLevel(logging.DEBUG)
Python Logging (function name, file name, line number) using a single file