Added support for text coloring on Windows 10

This commit is contained in:
Felix Kollmann
2018-04-03 00:25:30 +02:00
parent 778f2e774c
commit bb487e068c
3 changed files with 27 additions and 0 deletions
+2
View File
@@ -67,6 +67,8 @@ type TextFormatter struct {
func (f *TextFormatter) init(entry *Entry) {
if entry.Logger != nil {
f.isTerminal = checkIfTerminal(entry.Logger.Out)
f.initTerminal(entry)
}
}