diff --git a/text_formatter.go b/text_formatter.go index 49ec92f..ed578d2 100644 --- a/text_formatter.go +++ b/text_formatter.go @@ -4,6 +4,7 @@ import ( "bytes" "fmt" "os" + "runtime" "sort" "strings" "sync" @@ -102,7 +103,7 @@ func (f *TextFormatter) isColored() bool { } } - return isColored && !f.DisableColors + return isColored && !f.DisableColors && (runtime.GOOS != "windows") } // Format renders a single log entry