Scott Baker | e7144bc | 2019-10-01 14:16:47 -0700 | [diff] [blame] | 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) |