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

18
vendor/github.com/sirupsen/logrus/terminal_windows.go generated vendored Normal file
View File

@@ -0,0 +1,18 @@
// +build !appengine,!js,windows
package logrus
import (
"io"
"os"
"syscall"
sequences "github.com/konsorten/go-windows-terminal-sequences"
)
func initTerminal(w io.Writer) {
switch v := w.(type) {
case *os.File:
sequences.EnableVirtualTerminalProcessing(syscall.Handle(v.Fd()), true)
}
}