📜  pytest logcli 写入文件 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:18.837000             🧑  作者: Mango

代码示例1
[pytest]
log_cli = 1
log_cli_level = CRITICAL
log_cli_format = %(message)s

log_file = pytest.log
log_file_level = DEBUG
log_file_format = %(asctime)s [%(levelname)8s] %(message)s (%(filename)s:%(lineno)s)
log_file_date_format=%Y-%m-%d %H:%M:%S