Просмотр исходного кода

Add a sentence to the documentation that flag.Parse must be called first.

Rob Pike 12 лет назад
Родитель
Сommit
d1c4472bf2
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      glog.go

+ 1 - 0
glog.go

@@ -37,6 +37,7 @@
 //
 //
 // By default, all log statements write to files in a temporary directory.
 // By default, all log statements write to files in a temporary directory.
 // This package provides several flags that modify this behavior.
 // This package provides several flags that modify this behavior.
+// As a result, flag.Parse must be called before any logging is done.
 //
 //
 //	-logtostderr=false
 //	-logtostderr=false
 //		Logs are written to standard error instead of to files.
 //		Logs are written to standard error instead of to files.