示例#1
0
func init() {
	logflags.InitFlags(&logging.mu, &logging.toStderr,
		newStringValue(&logDir, &logDirSet), &logging.nocolor, &logging.verbosity,
		&logging.vmodule, &logging.traceLocation)
	// We define this flag here because stderrThreshold has the type Severity
	// which we can't pass to logflags without creating an import cycle.
	flag.Var(&logging.stderrThreshold,
		"alsologtostderr", "logs at or above this threshold go to stderr")
}
示例#2
0
func init() {
	logflags.InitFlags(&logging.mu, &logging.toStderr, &logging.alsoToStderr, logDir, &logging.color, &logging.verbosity, &logging.vmodule, &logging.traceLocation)
}