Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question

migrated from Jun 11 '12 at 6:28

This question came from our site for power users of web applications.

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.

share|improve this answer

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.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.