Redirect the console output to a file
I want to redirect the console output to a file. I tried to use cmd command : firefox > console.txt 2>&1 (https://developer.mozilla.org/en-US/docs/Web/API/Window/dump) and i add console.log("message") in my source code. The message is displayed in the web console but the console.txt file remains empty. do you have any idea about this problem? Is there another way to redirect the console log output to a file?
I want to redirect the console output to a file.
I tried to use cmd command : firefox > console.txt 2>&1 (https://developer.mozilla.org/en-US/docs/Web/API/Window/dump)
and i add console.log("message") in my source code. The message is displayed in the web console but the console.txt file remains empty.
do you have any idea about this problem?
Is there another way to redirect the console log output to a file?