mire787 / google-glog

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

"Setting Flags" section should explicitly mention FLAGS_ prefix #70

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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).

Original issue reported on code.google.com by jh...@google.com on 6 Nov 2010 at 10:51

GoogleCodeExporter commented 8 years ago
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?

Original comment by cuteandf...@gmail.com on 25 Jan 2013 at 2:30

GoogleCodeExporter commented 8 years ago
Done by http://code.google.com/p/google-glog/source/detail?r=126

Thanks for the suggestion!

Original comment by shinichi...@gmail.com on 25 Jan 2013 at 6:04