Unable to export logs to --log-file #8228
Unanswered
tashrifbillah
asked this question in
Q&A
Replies: 1 comment
-
logs refers to the data from the python stdlib logging library, not the general cli output of pytest so if you added something like
you would see that message logged in the logfile |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
I am new to pytest and trying to export test logs to a file. Here is my setup:
test_one.py:
Although I have specified a
--log-file
, all the following logs are on the console and don't get exported tolog.txt
:What am I missing?
Beta Was this translation helpful? Give feedback.
All reactions