commit | d1c4472bf2efd3826f2b5bdcc02d8416798d678c | [log] [tgz] |
---|---|---|
author | Rob Pike <r@tubenose.mtv.corp.google.com> | Wed Jan 15 09:40:30 2014 -0800 |
committer | Rob Pike <r@tubenose.mtv.corp.google.com> | Wed Jan 15 09:40:30 2014 -0800 |
tree | c60ecd5b8b20e96ff2811404b0071fcd0655cfd0 | |
parent | 20cea4dfef0c0151bba0422a6244cc1d3e8292b1 [diff] |
Add a sentence to the documentation that flag.Parse must be called first.
diff --git a/glog.go b/glog.go index dbe1d65..d5e1ac2 100644 --- a/glog.go +++ b/glog.go
@@ -37,6 +37,7 @@ // // By default, all log statements write to files in a temporary directory. // This package provides several flags that modify this behavior. +// As a result, flag.Parse must be called before any logging is done. // // -logtostderr=false // Logs are written to standard error instead of to files.