Store console output to file in Google Chrome

I would like to store the console output from my javascript in a file.

Well, I would prefer to see the output in a file too see with /usr/bin/tail or other linux comand.

Does anybody know if its possible?, and How to do that?


Solution 1:

You can use --enable-logging flag to save console logs in a file chrome_debug.log under ~/.config/google-chrome/chrome_debug.log.

Link removed because it now redirects to a very suspicious site. This is one reason we don't link offsite.