log.go (301B)
1 package concurrent 2 3 import ( 4 "os" 5 "log" 6 "io/ioutil" 7 ) 8 9 // ErrorLogger is used to print out error, can be set to writer other than stderr 10 var ErrorLogger = log.New(os.Stderr, "", 0) 11 12 // InfoLogger is used to print informational message, default to off 13 var InfoLogger = log.New(ioutil.Discard, "", 0)