from sys import stdout
import logging
formatter = logging.Formatter(
    '[%(asctime)s] p%(process)s  { %(name)s %(pathname)s:%(lineno)d} \
                            %(levelname)s - %(message)s', '%m-%d %H:%M:%S')


def get_logger(name=__name__):
    logger = logging.getLogger(name)
    handler = logging.StreamHandler(stdout)
    handler.setFormatter(formatter)
    logger.addHandler(handler)
    return logger

@@ -279,16 +279,51 @@
 r(name)%0A
+    logger.setLevel(logging.DEBUG)%0A
     hand

change default logger level