def log_message(msg, symbol='.', surround=False):
    'Little formatting helper'
    res = '{}{:^40}{}'.format((5 * symbol), msg, (5 * symbol))
    if surround:
        res = '\n{}\n{}\n{}'.format((50 * symbol), res, (50 * symbol))
    logging.info(res)
Little formatting helper
def log_message(msg, symbol='.', surround=False):
    
    res = '{}{:^40}{}'.format((5 * symbol), msg, (5 * symbol))
    if surround:
        res = '\n{}\n{}\n{}'.format((50 * symbol), res, (50 * symbol))
    logging.info(res)