Merge branch 'win10-color-support' of git://github.com/konsorten/logrus into konsorten-win10-color-support
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user