Merge branch 'win10-color-support' of git://github.com/konsorten/logrus into konsorten-win10-color-support

This commit is contained in:
David Bariod
2018-09-16 09:12:22 +02:00
6 changed files with 59 additions and 3 deletions
+4
View File
@@ -79,6 +79,10 @@ type TextFormatter struct {
func (f *TextFormatter) init(entry *Entry) {
if entry.Logger != nil {
f.isTerminal = checkIfTerminal(entry.Logger.Out)
if f.isTerminal {
initTerminal(entry.Logger.Out)
}
}
}