summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
author <shinichiro.hamaji@gmail.com>2010-01-20 07:39:18 +0000
committer <shinichiro.hamaji@gmail.com>2010-01-20 07:39:18 +0000
commitcb350102153cf25db31903b103ee6bf003cfa7c2 (patch)
tree305823b86264efe51fe25fc9e36a30e077736cfb /doc
parent327359662c7e320ca0891090647fd57949b9bad1 (diff)
downloadglog-cb350102153cf25db31903b103ee6bf003cfa7c2.tar.gz
glog-cb350102153cf25db31903b103ee6bf003cfa7c2.tar.bz2
glog-cb350102153cf25db31903b103ee6bf003cfa7c2.zip
Use GLOG_* environment variables even when gflags is installed.
Define GLOG_DEFINE_*, which checks if the GLOG_* environment variable is defined. If defined, GLOG_DEFINE_* passes the value and otherwise, it passes the original default value. In this way, GLOG_DEFINE_* macro uses the value specified by gflags first, then GLOG_* environment variables, and finally it uses the default value if neither of them are specified. git-svn-id: https://google-glog.googlecode.com/svn/trunk@76 eb4d4688-79bd-11dd-afb4-1d65580434c0
Diffstat (limited to 'doc')
-rw-r--r--doc/glog.html7
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/glog.html b/doc/glog.html
index c9816e0..9fe2e1f 100644
--- a/doc/glog.html
+++ b/doc/glog.html
@@ -116,6 +116,13 @@ environment variables, prefixing the flag name with "GLOG_", e.g.
GLOG_logtostderr=1 ./your_application
</pre>
+<!-- TODO(hamaji): Fill the version number
+<p>By glog version 0.x.x, you can use GLOG_* environment variables
+even if you have gflags. If both an environment variable and a flag
+are specified, the value specified by a flag wins. E.g., if GLOG_v=0
+and --v=1, the verbosity will be 1, not 0.
+-->
+
<p>The following flags are most commonly used:
<dl>