Skip to content
Permalink
Browse files

Merge pull request #16 from smacker/fix_text_formatter_on_windows

fix text formatter on windows
  • Loading branch information...
mcuadros committed Apr 26, 2019
2 parents c386220 + f0a2b02 commit 2b0b5b62e97231e1300500d4c6170ca84028f545
Showing with 2 additions and 1 deletion.
  1. +2 −1 factory.go
@@ -4,6 +4,7 @@ import (
"encoding/json"
"fmt"
"os"
"runtime"
"strings"
"time"

@@ -130,7 +131,7 @@ func (f *LoggerFactory) setFormat(l *logrus.Logger) error {
switch f.Format {
case "text":
f := new(prefixed.TextFormatter)
f.ForceColors = true
f.ForceColors = runtime.GOOS != "windows"
f.FullTimestamp = true
f.TimestampFormat = time.RFC3339Nano
l.Formatter = f

0 comments on commit 2b0b5b6

Please sign in to comment.
You can’t perform that action at this time.