How to enable DVLOG?

3,359 views
Skip to first unread message

Kaiduan Xie

unread,
Oct 28, 2014, 2:13:13 PM10/28/14
to chromium-dev
Hi all,

I build chrome in debug mode, how to run chrome to be able to see the
DVLOG like below?

DVLOG(1) << "DisplayInfoFromSpec info=" << display_info.ToString()
<< ", spec=" << spec;

Thanks,

/Kaiduan

Anton Vayvod

unread,
Oct 28, 2014, 4:12:50 PM10/28/14
to kaid...@gmail.com, chromium-dev
Hi,


If I'm not mistaken, DVLOG(1) requires it to be a debug build and --v=2 (or greater value for v, per the instructions above v=1 turns on [D]VLOG(0))

Hope this helps,
Anton.


--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
    http://groups.google.com/a/chromium.org/group/chromium-dev

To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.

Roger Tawa

unread,
Oct 28, 2014, 4:37:03 PM10/28/14
to Anton Vayvod, kaid...@gmail.com, chromium-dev
I find:

  --log --v=0 --vmodule=foo=1

more useful, since it disables all logging except the ones I'm interested in, producing less noisy output.  In this example, this enables output only from the file foo.cc.  You can use a comma-separate list too:

  --log --v=0 --vmodule=foo=1,bar=2

Thanks,
Roger

-

Kaiduan Xie

unread,
Oct 29, 2014, 2:34:03 PM10/29/14
to Roger Tawa, Anton Vayvod, chromium-dev
Thanks a lot Anton and Roger.

/Kaiduan
Reply all
Reply to author
Forward
0 new messages