How to enable logging for Google Chrome in Ubuntu 12.04?

Posted by skytreader on Ask Ubuntu See other posts from Ask Ubuntu or by skytreader
Published on 2013-01-05T06:09:46Z Indexed on 2013/06/27 16:29 UTC
Read the original article Hit count: 159

Filed under:
|

I'm trying to capture the logs for a certain bug I'm having with Google Chrome. However, I can't find/enable logs for GC.

According to this Chromium project page, I just need to add the flags --enable-logging --v=1 and a chrome_debug.log file will appear in my user data directory. However, after running GC (and closing through the 'X' title bar button) there is no chrome_debug.log file in the specified directory. I even tried running as root as it may have something to do with write permissions but GC refuses to start as root.

Another thing, GC also prints messages when invoked from command line. I tried capturing this and redirecting them to a file via $ google-chrome > today.log but the messages are still printed in the command line and the file I specify gets created but remains empty.

Note that I can't just copy-paste the messages printed on terminal after my bug occurs as the bug freezes up my whole system that, when it occurs, my only option is to turn off my computer straight via the power button. I've seen a few similar bugs already posted but I find that they don't exactly describe my situation so I'd really like to get some logs for this.

So how do I enable logging or, at least, get those terminal messages in a file?

© Ask Ubuntu or respective owner

Related posts about google-chrome

Related posts about logging