首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >【pytest】日志写入文件error部分怎么设置颜色呢?

【pytest】日志写入文件error部分怎么设置颜色呢?

提问于 2024-08-14 21:03:31
回答 0关注 0查看 2

如截图中所示,pytest写入日志文件中的error日志,报错部分显示为红色,这个要怎么设置呢?控制台打印那里也可以设置成红色吗?

platform win32 -- Python 3.12.1, pytest-8.3.2, pluggy-1.5.0

cachedir: .pytest_cache

rootdir:

configfile: pytest.ini

plugins: allure-pytest-2.13.5

collecting ... collected 2 items

回答

和开发者交流更多问题细节吧,去 写回答
相关文章

相似问题

相关问答用户
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档