log.go 301 B

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