Default --logtostderr=true

This retains compatibility with existing logging to stderr, until we can agree
on log dirs for each cmd.
pull/6/head
Tim Hockin 2014-06-24 21:29:53 -07:00
parent 9f9e75f508
commit a570b81220
1 changed files with 5 additions and 0 deletions

View File

@ -26,6 +26,11 @@ import (
var logFlushFreq = flag.Duration("log_flush_frequency", 5*time.Second, "Maximum number of seconds between log flushes")
// TODO(thockin): This is temporary until we agree on log dirs and put those into each cmd.
func init() {
flag.Set("logtostderr", "true")
}
// This serves as a bridge between the standard log package and the glog package.
type GlogWriter struct{}