搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

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

  • 2 回覆
  • 0 有這個問題
  • 3 次檢視
  • 最近回覆由 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.

有幫助嗎?

問個問題

如果您還沒有帳號,您必須先登入帳號 來回覆文章。還沒有帳號的話,只能發問新問題