Allow to disable log color output (#288)

Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax
2021-03-01 00:25:16 +01:00
committed by GitHub
parent 210e0be62e
commit cad8dfb673
3 changed files with 10 additions and 6 deletions

View File

@@ -20,6 +20,7 @@ func Configure(cli *model.Cli) {
if !cli.LogJSON {
w = zerolog.ConsoleWriter{
Out: os.Stdout,
NoColor: cli.LogNoColor,
TimeFormat: time.RFC1123,
}
} else {