mirror of
https://github.com/crazy-max/diun.git
synced 2025-12-24 22:39:22 +01:00
Allow to disable log color output (#288)
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user