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

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)
}
}