搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

Learn More

How do I get the logs generated on the console to redirect to a file?

  • 2 个回答
  • 0 人有此问题
  • 6 次查看
  • 最后回复者为 deathholes

more options

I want to run some automation tests with the firefox browser. With this, I want to get the logs which is normally shown on the console to be redirected to a separate file. How can I do this in firefox? Google chrome has a similar functionality when you open chrome with "--enable-logging --v=1" parameters.

I want to run some automation tests with the firefox browser. With this, I want to get the logs which is normally shown on the console to be redirected to a separate file. How can I do this in firefox? Google chrome has a similar functionality when you open chrome with "--enable-logging --v=1" parameters.

所有回复 (2)

more options

You can redirect the output to a file with an angle bracket:

firefox > log.txt
more options

Hi @zeroknight, This method isn't working. it is not redirecting the console logs to the file.