disabled ANSI escape sequences when logging on windows
import (
"fmt"
"os"
+ "runtime"
"github.com/kopia/kopia/cli"
"github.com/kopia/kopia/repo"
@@ -48,7 +49,7 @@ func initializeLogging(ctx *kingpin.ParseContext) error {
log.Logger = log.Output(lf)
} else {
- log.Logger = log.Output(zerolog.ConsoleWriter{Out: os.Stderr})
+ log.Logger = log.Output(zerolog.ConsoleWriter{Out: os.Stderr, NoColor: runtime.GOOS == "windows"})
}
return nil
