Issue 70 in google-glog: "Setting Flags" section should explicitly mention FLAGS_ prefix

12 views
Skip to first unread message

codesite...@google.com

unread,
Nov 6, 2010, 6:52:39 PM11/6/10
to googl...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 70 by jh...@google.com: "Setting Flags" section should explicitly
mention FLAGS_ prefix
http://code.google.com/p/google-glog/issues/detail?id=70

In this doc: http://google-glog.googlecode.com/svn/trunk/doc/glog.html

The "Setting Flags" section tells how to change settings like "logtostderr"
from the command line or environment variables, but not from within the
code itself. If I didn't already know about gflags, I wouldn't have known
to write this in my C++ code:

FLAGS_logtostderr = true;

Please update the doc to give explicit examples of how to change these
settings from the code (and mention whether they should happen before or
after InitGoogleLogging).

codesite...@google.com

unread,
Jan 24, 2013, 9:30:25 PM1/24/13
to googl...@googlegroups.com

Comment #1 on issue 70 by cuteandf...@gmail.com: "Setting Flags" section
should explicitly mention FLAGS_ prefix
http://code.google.com/p/google-glog/issues/detail?id=70

I was just about to complain about this myself. I spent a good 5 - 10
minutes trying to figure out how to do this just to find myself searching
through source thinking that there *must* be a way. Surely enough there
was, it's just not documented.

Is this method for some reason looked down upon?

codesite...@google.com

unread,
Jan 25, 2013, 1:04:41 AM1/25/13
to googl...@googlegroups.com
Updates:
Status: Fixed

Comment #2 on issue 70 by shinichi...@gmail.com: "Setting Flags" section
should explicitly mention FLAGS_ prefix
http://code.google.com/p/google-glog/issues/detail?id=70

Done by http://code.google.com/p/google-glog/source/detail?r=126

Thanks for the suggestion!

Reply all
Reply to author
Forward
0 new messages