Simplified file structure

This commit is contained in:
Felix Kollmann
2018-04-03 04:47:29 +02:00
parent c9a46a1e7c
commit cf5eba7dfd
4 changed files with 6 additions and 6 deletions
+19
View File
@@ -0,0 +1,19 @@
// +build !appengine,!gopherjs,windows
package logrus
import (
"os"
"syscall"
sequences "github.com/konsorten/go-windows-terminal-sequences"
)
func (f *TextFormatter) initTerminal(entry *Entry) {
switch v := entry.Logger.Out.(type) {
case *os.File:
handle := syscall.Handle(v.Fd())
sequences.EnableVirtualTerminalProcessing(handle, true)
}
}