allure2
allure2 copied to clipboard
There is no log output in allure
Describe the bug Hi I was using Allure and found that the log message was not collected
To Reproduce Steps to reproduce the behavior: def test_method(logger) logger.info("hi") #Use fixtures to generate a logger if name == 'main': pytest.main(["-s", "--alluredir={}".format(DirInfo.report_dir.value),#Please replace the path "test_cases.py"]) result = os.system(r"allure serve {}".format(DirInfo.report_dir.value)) print("result={}".format(result))
Expected behavior I would like to see logs in the report
Screenshots

Environment (please complete the following information):
| Allure version | 2.18.0 |
|---|---|
| Test framework | [email protected] |
| Allure adaptor | [email protected] |
| Generate report using | [email protected] |