Matteo Scandolo | a428586 | 2020-12-01 18:10:10 -0800 | [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) |