GeneJX / google-glog

Automatically exported from code.google.com/p/google-glog
Other
0 stars 0 forks source link

Why vmodule not include source file dir? #157

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
vmodule only match the basename part of the souce path, but filter by dir is 
more useful, for example:
--vmodule="myproject/*=2" --v=0
set v level only in 'myproject' to 2.

Original issue reported on code.google.com by chen3feng on 12 Apr 2013 at 9:03

GoogleCodeExporter commented 8 years ago
I made a change to enable match dir in vmodule if the pattern contains '/', 
otherwise, take the original behavior. please consider it, thanks.

Original comment by chen3feng on 12 Apr 2013 at 9:40

Attachments:

GoogleCodeExporter commented 8 years ago
Usage:
./tally --flagfile=onebox.flags --v=0 --vmodule=tally/*=4
Make all cpp in tally dir take v=4.

./tally --flagfile=onebox.flags --v=0 --vmodule=main=4
Make only main.cpp in any dir take v=4. just like original behavior.

Original comment by chen3feng on 12 Apr 2013 at 9:44