jianbing / utx

对Python unittest的功能进行了扩展(用例排序,分组,数据驱动,可视化报告等)
MIT License
145 stars 59 forks source link

log没有换行,可读性差 #1

Closed a0bb closed 5 years ago

a0bb commented 5 years ago

_logger_handler.setFormatter(logging.Formatter('%(asctime)s %(message)s' + '\n'))

建议增加换行 \utx-0.0.2-py3.6.egg\utx\log.py line:13

whw845293102 commented 5 years ago

utx-master\build\lib\utx\log.py中添加“\n”换行就可以了

def info(msg): _logger.info(Fore.GREEN + "INFO " + str(msg) + Style.RESET_ALL + "\n")

def error(msg): _logger.error(Fore.RED + "ERROR " + str(msg) + Style.RESET_ALL + "\n")

def warn(msg): _logger.warning(Fore.YELLOW + "WARNING " + str(msg) + Style.RESET_ALL + "\n")

然后在重新安装utx