vendor: add github.com/sirupsen/logrus

This commit is contained in:
justinalin 2019-07-26 08:53:58 +08:00 committed by Nick Craig-Wood
parent ccc416e62b
commit a3449bda30
33 changed files with 2853 additions and 0 deletions

View file

@ -0,0 +1,17 @@
// +build !appengine,!js,!windows,!nacl,!plan9
package logrus
import (
"io"
"os"
)
func checkIfTerminal(w io.Writer) bool {
switch v := w.(type) {
case *os.File:
return isTerminal(int(v.Fd()))
default:
return false
}
}