import logging
logger = logging.getLogger(__name__)
def foo():
logger.debug("message")
if __name__ == '__main__':
logging.basicConfig(format="[%(funcName)s] %(message)s", level=logging.DEBUG)
foo()
CmltcG9ydCBsb2dnaW5nCmxvZ2dlciA9IGxvZ2dpbmcuZ2V0TG9nZ2VyKF9fbmFtZV9fKQoKZGVmIGZvbygpOgogICAgbG9nZ2VyLmRlYnVnKCJtZXNzYWdlIikKCgppZiBfX25hbWVfXyA9PSAnX19tYWluX18nOgogICAgbG9nZ2luZy5iYXNpY0NvbmZpZyhmb3JtYXQ9IlslKGZ1bmNOYW1lKXNdICUobWVzc2FnZSlzIiwgbGV2ZWw9bG9nZ2luZy5ERUJVRykKICAgIGZvbygp