Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Learn More

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

  • 2 trả lời
  • 0 gặp vấn đề này
  • 6 lượt xem
  • Trả lời mới nhất được viết bởi 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.

Tất cả các câu trả lời (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.