Store console output to file in Google Chrome

4

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?

Juanin

Posted 2012-06-05T15:47:02.620

Reputation: 141

Answers

2

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

ifadey

Posted 2012-06-05T15:47:02.620

Reputation: 121

0

check out Sawbuck, I haven't tried it yet the description is that is a GUI for logging chrome.

Mikey

Posted 2012-06-05T15:47:02.620

Reputation: 1 560

0

I think you'll have to use File API to write files to the disk. You can't just redirect the console log to file.

sachleen

Posted 2012-06-05T15:47:02.620

Reputation: 206