MozillaZine

Save automatically console to file?

User Help for Mozilla Firefox
mozillaine
 
Posts: 36
Joined: May 30th, 2017, 9:48 pm

Post Posted July 28th, 2020, 1:12 am

How i can save all console log messages *automatically* to file in Firefox Quantum and 56.x?

morat
 
Posts: 4098
Joined: February 3rd, 2009, 6:29 pm

Post Posted July 28th, 2020, 11:03 am

Maybe use dump() instead of console.log(), then redirect to a file.

To see the dump output you have to enable it by setting the browser.dom.window.dump.enabled pref to true.

Dump
http://developer.mozilla.org/docs/Web/API/Window/dump

HTTP logging
http://developer.mozilla.org/docs/Mozilla/Debugging/HTTP_logging

Return to Firefox Support


Who is online

Users browsing this forum: No registered users and 5 guests