1
0
Fork 0

Colored logs on windows.

This commit is contained in:
Ludovic Fernandez 2018-10-02 16:28:04 +02:00 committed by Traefiker Bot
parent f04813fa02
commit 4cb1ae4626
17 changed files with 427 additions and 121 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)
}
}