Beispiel #1
0
func init() {
	log.SetLevelByString("warn")
	log.SetFlags(log.LstdFlags | log.Lmicroseconds)
}
Beispiel #2
0
func init() {
	logLevel := os.Getenv("log_level")
	log.SetLevelByString(logLevel)
	log.SetFlags(log.LstdFlags | log.Lmicroseconds | log.Lshortfile)
}