Vendor sirupsen/logrus@1.3.0

Signed-off-by: John Howard <jhoward@microsoft.com>
This commit is contained in:
John Howard
2019-02-20 17:49:45 -08:00
parent 58dc0677b4
commit fd6ac5d026
22 changed files with 867 additions and 365 deletions

View File

@@ -0,0 +1,19 @@
// +build !appengine,!js,!windows,!aix
package logrus
import (
"io"
"os"
"golang.org/x/crypto/ssh/terminal"
)
func checkIfTerminal(w io.Writer) bool {
switch v := w.(type) {
case *os.File:
return terminal.IsTerminal(int(v.Fd()))
default:
return false
}
}