re-vendor sirupsen/logrus

This commit is contained in:
Sargun Dhillon
2019-05-06 17:25:48 -07:00
parent 740bec9ea0
commit 5ef5910b2f
20 changed files with 1999 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
// +build !appengine,!js,!windows
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
}
}