How to disable console log from JS code?

103 views
Skip to first unread message

vince

unread,
Sep 12, 2017, 8:05:39 AM9/12/17
to Chromium-dev
Hi, 
    When I run content_shell with parameter --disable-logging, I can see that there still have the following log output:
    "[2491:2491:0912/114152.207859:11429507276:INFO:CONSOLE(111)] xxxxxx"
    
     The upper log is from the JS code console.log().  It seems that --disable-logging can't control this kind of log. 
     There have too many such kind of logs, can anyone help to supply one method to quickly disable the console log? 

Regards,
Vince


vince

unread,
Sep 13, 2017, 5:08:16 AM9/13/17
to Chromium-dev
I found that when I run content_shell with "--v" parameter, it can suppress the log.  For example "./content_shell --v=-1 xxxxx" successfully. My issue is close.

Sorry to disturb you. 


Reply all
Reply to author
Forward
0 new messages