2021-02-09 20:17:06 +01:00
|
|
|
package concurrent
|
|
|
|
|
|
|
|
import (
|
|
|
|
"os"
|
2021-02-10 01:00:02 +01:00
|
|
|
"log"
|
|
|
|
"io/ioutil"
|
2021-02-09 20:17:06 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
// ErrorLogger is used to print out error, can be set to writer other than stderr
|
|
|
|
var ErrorLogger = log.New(os.Stderr, "", 0)
|
|
|
|
|
|
|
|
// InfoLogger is used to print informational message, default to off
|
2021-02-10 01:00:02 +01:00
|
|
|
var InfoLogger = log.New(ioutil.Discard, "", 0)
|