[pytest] ;开启日志 log_cli=true ;设置日志的级别,如果不设置级别的话,可以设置为NOTSET,如果要设置级别,级别可以有debug,info,warning,error,致命 log_level=NOTSET ;设置日志显示的信息格式 log_format=%(levelname)s--%(asctime)s--%(message)s ;设置日志中时间显示的格式 log_date_format=%Y-%m-%d %H:%M:%S ;每个py文件运行的时候追加的命令 ;addopts=-vs ;设置日志保存的文件 log_file=../report/log/日志.log ;设置日志保存在文件中的级别 log_file_level=error ;设置日志在文件中的信息格式 log_file_format=%(levelname)s--%(asctime)s--%(message)s ;设置文件日志中时间显示的格式 log_file_date_format=%Y-%m-%d %H:%M:%S