Skip to content

Commit

Permalink
customize HandlePanic per executor
Browse files Browse the repository at this point in the history
  • Loading branch information
taowen committed Mar 1, 2018
1 parent b6f8223 commit b889e4d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions log.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package concurrent

import (
"os"
"log"
"io/ioutil"
)

// 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
var InfoLogger = log.New(ioutil.Discard, "", 0)

0 comments on commit b889e4d

Please sign in to comment.